Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
Revert "fix: controls not showing on Android lock screen (#227)" (#231)
Browse files Browse the repository at this point in the history
This reverts commit 51a6fc2.
tanguyantoine authored Feb 9, 2019
1 parent a602310 commit 86baaba
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -141,13 +141,9 @@ public void init() {
createChannel(context);
}
nb = new NotificationCompat.Builder(context, CHANNEL_ID);
nb.setVisibility(Notification.VISIBILITY_PUBLIC);

if (!(Build.MANUFACTURER.toLowerCase(Locale.getDefault()).contains("huawei") && Build.VERSION.SDK_INT < Build.VERSION_CODES.M)) {
MediaStyle style = new MediaStyle();
style.setMediaSession(session.getSessionToken());
style.setShowActionsInCompactView(new int[]{0,1,2});
nb.setStyle(style);
nb.setStyle(new MediaStyle().setMediaSession(session.getSessionToken()));
}

state = pb.build();

1 comment on commit 86baaba

@13arturbruno
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pause button continue not showing to me :/

MusicControl.enableControl('pause', true)

Still dont working

Please sign in to comment.