Skip to content
Snippets Groups Projects
Commit a76ece99 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Playback notification: Move 'close' button

Show 'close' button for non seekable media, and move it at the end of
actions as previoulsy placed.
parent 20be65f6
No related branches found
No related tags found
No related merge requests found
......@@ -82,12 +82,13 @@ public class NotificationHelper {
R.drawable.ic_widget_play_w, ctx.getString(R.string.play),
MediaButtonReceiver.buildMediaButtonPendingIntent(ctx,
PlaybackStateCompat.ACTION_PLAY_PAUSE)));
} else builder.addAction(new NotificationCompat.Action(
R.drawable.ic_widget_close_w, ctx.getString(R.string.stop), piStop));
}
builder.addAction(new NotificationCompat.Action(
R.drawable.ic_widget_next_w, ctx.getString(R.string.next),
MediaButtonReceiver.buildMediaButtonPendingIntent(ctx,
PlaybackStateCompat.ACTION_SKIP_TO_NEXT)));
if (!pausable) builder.addAction(new NotificationCompat.Action(
R.drawable.ic_widget_close_w, ctx.getString(R.string.stop), piStop));
if (AndroidDevices.showMediaStyle) {
builder.setStyle(new androidx.media.app.NotificationCompat.MediaStyle()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment