[Android] Remove hack for playbackservice on Oreo

Geoffrey Métais git at videolan.org
Fri Oct 27 16:02:40 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Oct 27 11:52:50 2017 +0200| [dd1d19986de307d9d7db1f939b4ee6b1d3c5cf2b] | committer: Geoffrey Métais

Remove hack for playbackservice on Oreo

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

 vlc-android/src/org/videolan/vlc/PlaybackService.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index fefb9bb56..3cf03e62e 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -962,7 +962,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
                                 cover, playing, sessionToken, getSessionPendingIntent());
                         if (isPlayingPopup())
                             return;
-                        if (AndroidUtil.isOOrLater || !AndroidUtil.isLolliPopOrLater || playing) {
+                        if (!AndroidUtil.isLolliPopOrLater || playing) {
                             if (!mIsForeground) {
                                 PlaybackService.this.startForeground(3, notification);
                                 mIsForeground = true;



More information about the Android mailing list