Add stop button to remote screen
This commit is contained in:
parent
717498b846
commit
38325be14a
|
@ -126,6 +126,7 @@ public class RemoteFragment extends Fragment
|
|||
@InjectView(R.id.details) TextView nowPlayingDetails;
|
||||
|
||||
@InjectView(R.id.play) ImageButton playButton;
|
||||
@InjectView(R.id.stop) ImageButton stopButton;
|
||||
@InjectView(R.id.rewind) ImageButton rewindButton;
|
||||
@InjectView(R.id.fast_forward) ImageButton fastForwardButton;
|
||||
|
||||
|
@ -424,6 +425,12 @@ public class RemoteFragment extends Fragment
|
|||
action.execute(hostManager.getConnection(), defaultPlaySpeedChangedCallback, callbackHandler);
|
||||
}
|
||||
|
||||
@OnClick(R.id.stop)
|
||||
public void onStopClicked(View v) {
|
||||
Player.Stop action = new Player.Stop(currentActivePlayerId);
|
||||
action.execute(hostManager.getConnection(), defaultActionCallback, callbackHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback for methods that change the play speed
|
||||
*/
|
||||
|
|
|
@ -100,6 +100,14 @@
|
|||
style="@style/Widget.Button.Borderless"
|
||||
android:src="?attr/iconRewind"
|
||||
android:contentDescription="@string/rewind"/>
|
||||
<ImageButton
|
||||
android:id="@+id/stop"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="match_parent"
|
||||
style="@style/Widget.Button.Borderless"
|
||||
android:src="?attr/iconStop"
|
||||
android:contentDescription="@string/stop"/>
|
||||
<ImageButton
|
||||
android:id="@+id/play"
|
||||
android:layout_width="0dp"
|
||||
|
|
|
@ -59,6 +59,14 @@
|
|||
style="@style/Widget.Button.Borderless"
|
||||
android:src="?attr/iconRewind"
|
||||
android:contentDescription="@string/rewind"/>
|
||||
<ImageButton
|
||||
android:id="@+id/stop"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="match_parent"
|
||||
style="@style/Widget.Button.Borderless"
|
||||
android:src="?attr/iconStop"
|
||||
android:contentDescription="@string/stop"/>
|
||||
<ImageButton
|
||||
android:id="@+id/play"
|
||||
android:layout_width="0dp"
|
||||
|
|
Loading…
Reference in New Issue