[Android] Remove dead code

Geoffrey Métais git at videolan.org
Mon Jul 3 11:53:33 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jul  3 11:52:59 2017 +0200| [0d9481ef1ea139d4feac029891a9ee24ce0971b4] | committer: Geoffrey Métais

Remove dead code

Causes crashs on Android 7+

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

 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 fbfc56397..6ac3e5d75 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -155,7 +155,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
         return binder.getService();
     }
 
-    KeyguardManager mKeyguardManager = (KeyguardManager) VLCApplication.getAppContext().getSystemService(Context.KEYGUARD_SERVICE);
+    KeyguardManager mKeyguardManager;
     private SharedPreferences mSettings;
     private final IBinder mBinder = new LocalBinder();
     private MediaWrapperList mMediaList = new MediaWrapperList();



More information about the Android mailing list