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

Commit 8befa03

Browse files
Revert "fix: controls not showing on Android lock screen (#227)"
This reverts commit 51a6fc2.
1 parent a602310 commit 8befa03

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

android/src/main/java/com/tanguyantoine/react/MusicControlModule.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,9 @@ public void init() {
141141
createChannel(context);
142142
}
143143
nb = new NotificationCompat.Builder(context, CHANNEL_ID);
144-
nb.setVisibility(Notification.VISIBILITY_PUBLIC);
145144

146145
if (!(Build.MANUFACTURER.toLowerCase(Locale.getDefault()).contains("huawei") && Build.VERSION.SDK_INT < Build.VERSION_CODES.M)) {
147-
MediaStyle style = new MediaStyle();
148-
style.setMediaSession(session.getSessionToken());
149-
style.setShowActionsInCompactView(new int[]{0,1,2});
150-
nb.setStyle(style);
146+
nb.setStyle(new MediaStyle().setMediaSession(session.getSessionToken()));
151147
}
152148

153149
state = pb.build();

0 commit comments

Comments
 (0)