[Android] Allow AppCompat to handle MediaSession events

Geoffrey Métais git at videolan.org
Wed Apr 4 18:35:10 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 12 15:58:16 2018 +0100| [51c64ccc454b0d3b77b8d88bd89e0a68d390b98d] | committer: Geoffrey Métais

Allow AppCompat to handle MediaSession events

> https://code.videolan.org/videolan/vlc-android/commit/51c64ccc454b0d3b77b8d88bd89e0a68d390b98d
---

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

diff --git a/vlc-android/src/org/videolan/vlc/RemoteControlClientReceiver.java b/vlc-android/src/org/videolan/vlc/RemoteControlClientReceiver.java
index a66d8adf8..74201c7c3 100644
--- a/vlc-android/src/org/videolan/vlc/RemoteControlClientReceiver.java
+++ b/vlc-android/src/org/videolan/vlc/RemoteControlClientReceiver.java
@@ -25,7 +25,6 @@ import android.os.SystemClock;
 import android.support.v4.media.session.MediaButtonReceiver;
 import android.view.KeyEvent;
 
-import org.videolan.libvlc.util.AndroidUtil;
 import org.videolan.vlc.util.AndroidDevices;
 import org.videolan.vlc.util.Constants;
 import org.videolan.vlc.util.Util;
@@ -120,7 +119,6 @@ public class RemoteControlClientReceiver extends MediaButtonReceiver {
             Util.startService(context, intent);
             return;
         }
-        if (!AndroidUtil.isOOrLater) //We need AppCompat 26+ for Oreo service management
-            super.onReceive(context, intent);
+        super.onReceive(context, intent);
     }
 }



More information about the Android mailing list