Control media playback

This commit is contained in:
2022-01-26 22:53:02 +01:00
parent 5f0eab5b30
commit abaa961d3a
4 changed files with 45 additions and 50 deletions

View File

@@ -2034,7 +2034,14 @@ public class ActivityManageRule extends Activity
{
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);
alertDialogBuilder.setTitle(myContext.getResources().getString(R.string.selectCommand));
final String choices[] = { myContext.getString(R.string.playPause), myContext.getString(R.string.play), myContext.getString(R.string.pause), myContext.getString(R.string.previous), myContext.getString(R.string.next) };
final String choices[] = {
myContext.getString(R.string.playPause),
myContext.getString(R.string.play),
myContext.getString(R.string.pause),
myContext.getString(R.string.stop),
myContext.getString(R.string.previous),
myContext.getString(R.string.next)
};
alertDialogBuilder.setItems(choices, new DialogInterface.OnClickListener()
{
@Override