Skip to content
Snippets Groups Projects
Commit ad0357aa 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 1536d2e7
No related branches found
No related tags found
No related merge requests found
Pipeline #5458 failed with stage
in 41 minutes and 9 seconds
......@@ -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