mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-06 10:09:33 +02:00
Reformat code
This commit is contained in:
parent
137bde5282
commit
6d5ea1596f
5 changed files with 27 additions and 25 deletions
|
@ -1,10 +1,10 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest package="de.badaix.snapcast"
|
||||||
package="de.badaix.snapcast">
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
<uses-permission android:name="android.permission.WAKE_LOCK"/>
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
|
@ -19,19 +19,19 @@
|
||||||
android:theme="@style/AppTheme.NoActionBar">
|
android:theme="@style/AppTheme.NoActionBar">
|
||||||
<!-- android:launchMode="singleInstance" -->
|
<!-- android:launchMode="singleInstance" -->
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN"/>
|
||||||
|
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<receiver android:name="de.badaix.snapcast.BootCompleteReceiver">
|
<receiver android:name="de.badaix.snapcast.BootCompleteReceiver">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</receiver>
|
</receiver>
|
||||||
|
|
||||||
<service android:name=".SnapclientService" />
|
<service android:name=".SnapclientService"/>
|
||||||
|
|
||||||
<!-- android:theme="@style/Theme.AppCompat.Light.DialogWhenLarge" -->
|
<!-- android:theme="@style/Theme.AppCompat.Light.DialogWhenLarge" -->
|
||||||
<activity
|
<activity
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
android:parentActivityName=".MainActivity">
|
android:parentActivityName=".MainActivity">
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="android.support.PARENT_ACTIVITY"
|
android:name="android.support.PARENT_ACTIVITY"
|
||||||
android:value=".MainActivity" />
|
android:value=".MainActivity"/>
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".AboutActivity"
|
android:name=".AboutActivity"
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
android:parentActivityName=".MainActivity">
|
android:parentActivityName=".MainActivity">
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="android.support.PARENT_ACTIVITY"
|
android:name="android.support.PARENT_ACTIVITY"
|
||||||
android:value=".MainActivity" />
|
android:value=".MainActivity"/>
|
||||||
</activity>
|
</activity>
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,8 @@
|
||||||
<h1>Snapcast</h1>
|
<h1>Snapcast</h1>
|
||||||
|
|
||||||
<p>Copyright © 2014 - 2016 <a href="mailto:snapcast@badaix.de">BadAix</a></p>
|
<p>Copyright © 2014 - 2016 <a href="mailto:snapcast@badaix.de">BadAix</a></p>
|
||||||
<p>Author: <a href="https://de.linkedin.com/pub/johannes-pohl/65/6a6/253">Johannes Pohl</a> and <a href="https://github.com/badaix/snapcast/graphs/contributors">contributors</a></p>
|
<p>Author: <a href="https://de.linkedin.com/pub/johannes-pohl/65/6a6/253">Johannes Pohl</a> and <a
|
||||||
|
href="https://github.com/badaix/snapcast/graphs/contributors">contributors</a></p>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h2>License</h2>
|
<h2>License</h2>
|
||||||
|
|
|
@ -141,6 +141,7 @@ public class ServerDialogFragment extends DialogFragment implements View.OnClick
|
||||||
|
|
||||||
public interface ServerDialogListener {
|
public interface ServerDialogListener {
|
||||||
void onHostChanged(String host, int streamPort, int controlPort);
|
void onHostChanged(String host, int streamPort, int controlPort);
|
||||||
|
|
||||||
void onAutoStartChanged(boolean autoStart);
|
void onAutoStartChanged(boolean autoStart);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,29 +13,29 @@
|
||||||
android:id="@+id/lvClient"
|
android:id="@+id/lvClient"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:layout_above="@+id/tvStreamState"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_alignParentStart="true"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
android:cacheColorHint="@android:color/transparent"
|
android:cacheColorHint="@android:color/transparent"
|
||||||
android:divider="@null"
|
android:divider="@null"
|
||||||
android:dividerHeight="1dp"
|
android:dividerHeight="1dp"
|
||||||
android:listSelector="@android:color/transparent"
|
android:listSelector="@android:color/transparent"/>
|
||||||
android:layout_above="@+id/tvStreamState"
|
|
||||||
android:layout_alignParentTop="true"
|
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:layout_alignParentStart="true"/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/tvStreamState"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
||||||
android:text="Stream state"
|
|
||||||
android:id="@+id/tvStreamState"
|
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_alignParentBottom="true"
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignParentStart="true"
|
android:layout_alignParentStart="true"
|
||||||
android:padding="5dp"/>
|
android:padding="5dp"
|
||||||
|
android:text="Stream state"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
|
@ -2,7 +2,7 @@ package de.badaix.snapcast;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To work on unit tests, switch the Test Artifact in the Build Variants view.
|
* To work on unit tests, switch the Test Artifact in the Build Variants view.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue