From 86baabae2e4bdb664b22e4fb3a1e5cde1b93b8f2 Mon Sep 17 00:00:00 2001 From: Tanguy Antoine Date: Sat, 9 Feb 2019 19:39:44 +0000 Subject: [PATCH] Revert "fix: controls not showing on Android lock screen (#227)" (#231) This reverts commit 51a6fc2c8523c78a4702bb90b4a044c59c5a2f21. --- .../java/com/tanguyantoine/react/MusicControlModule.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java b/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java index 57dfd539..ac3c78c5 100644 --- a/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java +++ b/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java @@ -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();