reformat code

This commit is contained in:
badaix 2016-12-11 20:45:23 +01:00
parent 03774a79f4
commit 6f6acedf83
5 changed files with 4 additions and 10 deletions

View file

@ -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.

View file

@ -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);

View file

@ -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;

View file

@ -24,7 +24,6 @@ import org.json.JSONObject;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
/**

View file

@ -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>