[Android] Reset compact playback notification actions

Geoffrey Métais git at videolan.org
Fri Apr 6 10:26:43 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr  6 10:25:46 2018 +0200| [455f532d707a93f0b411e2ed00e335e116d9eda3] | committer: Geoffrey Métais

Reset compact playback notification actions

> https://code.videolan.org/videolan/vlc-android/commit/455f532d707a93f0b411e2ed00e335e116d9eda3
---

 vlc-android/src/org/videolan/vlc/gui/helpers/NotificationHelper.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/helpers/NotificationHelper.java b/vlc-android/src/org/videolan/vlc/gui/helpers/NotificationHelper.java
index 87ec0bacb..189af7a7a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/NotificationHelper.java
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/NotificationHelper.java
@@ -26,7 +26,6 @@ import android.app.NotificationManager;
 import android.app.PendingIntent;
 import android.content.Context;
 import android.content.Intent;
-import android.content.res.Resources;
 import android.graphics.Bitmap;
 import android.os.Build;
 import android.support.annotation.RequiresApi;
@@ -38,7 +37,6 @@ import android.support.v4.media.session.PlaybackStateCompat;
 import org.videolan.vlc.R;
 import org.videolan.vlc.StartActivity;
 import org.videolan.vlc.util.AndroidDevices;
-import org.videolan.vlc.util.Constants;
 
 import static org.videolan.vlc.util.Constants.ACTION_PAUSE_SCAN;
 import static org.videolan.vlc.util.Constants.ACTION_RESUME_SCAN;
@@ -91,7 +89,7 @@ public class NotificationHelper {
         if (AndroidDevices.showMediaStyle) {
             builder.setStyle(new android.support.v4.media.app.NotificationCompat.MediaStyle()
                     .setMediaSession(sessionToken)
-                    .setShowActionsInCompactView(0)
+                    .setShowActionsInCompactView(0,1,2)
                     .setShowCancelButton(true)
                     .setCancelButtonIntent(piStop)
             );



More information about the Android mailing list