mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-04 00:59:32 +02:00
reformat code
This commit is contained in:
parent
03774a79f4
commit
6f6acedf83
5 changed files with 4 additions and 10 deletions
|
@ -20,20 +20,15 @@ package de.badaix.snapcast;
|
|||
|
||||
import android.os.Bundle;
|
||||
import android.preference.EditTextPreference;
|
||||
import android.preference.ListPreference;
|
||||
import android.preference.Preference;
|
||||
import android.preference.PreferenceFragment;
|
||||
import android.text.TextUtils;
|
||||
import android.text.format.DateUtils;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import de.badaix.snapcast.control.json.Client;
|
||||
import de.badaix.snapcast.control.json.Stream;
|
||||
|
||||
/**
|
||||
* Created by johannes on 11.01.16.
|
||||
|
|
|
@ -217,7 +217,7 @@ public class RemoteControl implements TcpClient.TcpClientListener {
|
|||
public void setClients(String groupId, ArrayList<String> clientIds) {
|
||||
try {
|
||||
JSONArray clients = new JSONArray();
|
||||
for (String clientId: clientIds)
|
||||
for (String clientId : clientIds)
|
||||
clients.put(clientId);
|
||||
JSONObject body = new JSONObject();
|
||||
body.put("group", groupId);
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.json.JSONObject;
|
|||
/**
|
||||
* Created by johannes on 06.01.16.
|
||||
*/
|
||||
public class Client implements JsonSerialisable, Comparable<Client> {
|
||||
public class Client implements JsonSerialisable, Comparable<Client> {
|
||||
private Host host;
|
||||
private Snapclient snapclient;
|
||||
private ClientConfig config;
|
||||
|
|
|
@ -24,7 +24,6 @@ import org.json.JSONObject;
|
|||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -47,11 +47,11 @@
|
|||
</android.support.design.widget.AppBarLayout>
|
||||
|
||||
<fragment
|
||||
android:id="@+id/clientListFragment"
|
||||
android:name="de.badaix.snapcast.ClientListFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="?attr/actionBarSize"
|
||||
android:name="de.badaix.snapcast.ClientListFragment"
|
||||
android:id="@+id/clientListFragment"
|
||||
tools:layout="@layout/fragment_client_list"/>
|
||||
|
||||
</android.support.design.widget.CoordinatorLayout>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue