[Android] Directly start service if context is an activity

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


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

Directly start service if context is an activity

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

 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 3fb361aa4..c14f790d8 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -36,9 +36,9 @@ import android.content.ServiceConnection;
 import android.content.SharedPreferences;
 import android.graphics.Bitmap;
 import android.graphics.BitmapFactory;
-import android.media.audiofx.AudioEffect;
 import android.media.AudioManager;
 import android.media.AudioManager.OnAudioFocusChangeListener;
+import android.media.audiofx.AudioEffect;
 import android.net.Uri;
 import android.os.Binder;
 import android.os.Build;



More information about the Android mailing list