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
137bde5282
commit
6d5ea1596f
5 changed files with 27 additions and 25 deletions
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="de.badaix.snapcast">
|
||||
<manifest 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.INTERNET" />
|
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK"/>
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
|
@ -19,19 +19,19 @@
|
|||
android:theme="@style/AppTheme.NoActionBar">
|
||||
<!-- android:launchMode="singleInstance" -->
|
||||
<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>
|
||||
</activity>
|
||||
|
||||
<receiver android:name="de.badaix.snapcast.BootCompleteReceiver">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
||||
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<service android:name=".SnapclientService" />
|
||||
<service android:name=".SnapclientService"/>
|
||||
|
||||
<!-- android:theme="@style/Theme.AppCompat.Light.DialogWhenLarge" -->
|
||||
<activity
|
||||
|
@ -40,7 +40,7 @@
|
|||
android:parentActivityName=".MainActivity">
|
||||
<meta-data
|
||||
android:name="android.support.PARENT_ACTIVITY"
|
||||
android:value=".MainActivity" />
|
||||
android:value=".MainActivity"/>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".AboutActivity"
|
||||
|
@ -48,7 +48,7 @@
|
|||
android:parentActivityName=".MainActivity">
|
||||
<meta-data
|
||||
android:name="android.support.PARENT_ACTIVITY"
|
||||
android:value=".MainActivity" />
|
||||
android:value=".MainActivity"/>
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
<h1>Snapcast</h1>
|
||||
|
||||
<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>
|
||||
<h2>License</h2>
|
||||
|
|
|
@ -141,6 +141,7 @@ public class ServerDialogFragment extends DialogFragment implements View.OnClick
|
|||
|
||||
public interface ServerDialogListener {
|
||||
void onHostChanged(String host, int streamPort, int controlPort);
|
||||
|
||||
void onAutoStartChanged(boolean autoStart);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,29 +13,29 @@
|
|||
android:id="@+id/lvClient"
|
||||
android:layout_width="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:divider="@null"
|
||||
android:dividerHeight="1dp"
|
||||
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"/>
|
||||
android:listSelector="@android:color/transparent"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvStreamState"
|
||||
android:layout_width="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_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:padding="5dp"/>
|
||||
android:padding="5dp"
|
||||
android:text="Stream state"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
</RelativeLayout>
|
||||
|
||||
</FrameLayout>
|
||||
|
|
|
@ -2,7 +2,7 @@ package de.badaix.snapcast;
|
|||
|
||||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue