[Android] Fix version check in video player

Geoffrey Métais git at videolan.org
Thu Jul 27 09:30:16 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jul 27 09:28:49 2017 +0200| [6ac1f73645d3e0615bf3a811c706d7fbbb9fe2fb] | committer: Geoffrey Métais

Fix version check in video player

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 0e522ebf3..2effc85bc 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -624,7 +624,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
     @TargetApi(Build.VERSION_CODES.KITKAT_WATCH)
     private boolean isInteractive() {
         PowerManager pm = (PowerManager) getApplicationContext().getSystemService(Context.POWER_SERVICE);
-        return AndroidUtil.isKitKatOrLater ? pm.isInteractive() : pm.isScreenOn();
+        return AndroidUtil.isLolliPopOrLater ? pm.isInteractive() : pm.isScreenOn();
     }
 
     @Override



More information about the Android mailing list