diff --git a/app/src/main/java/org/xbmc/kore/ui/RemoteFragment.java b/app/src/main/java/org/xbmc/kore/ui/RemoteFragment.java index ad84b44..2f7f6f1 100644 --- a/app/src/main/java/org/xbmc/kore/ui/RemoteFragment.java +++ b/app/src/main/java/org/xbmc/kore/ui/RemoteFragment.java @@ -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 */ diff --git a/app/src/main/res/layout-land/fragment_remote.xml b/app/src/main/res/layout-land/fragment_remote.xml index f8eb108..3883bc9 100644 --- a/app/src/main/res/layout-land/fragment_remote.xml +++ b/app/src/main/res/layout-land/fragment_remote.xml @@ -100,6 +100,14 @@ style="@style/Widget.Button.Borderless" android:src="?attr/iconRewind" android:contentDescription="@string/rewind"/> + +