[Android] PlaybackService: rename receiver

Thomas Guillem git at videolan.org
Wed Jul 8 11:08:30 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jul  7 16:50:06 2015 +0200| [86f3b4086ddc4b20b8712c944c83b0a3205bb593] | committer: Thomas Guillem

PlaybackService: rename receiver

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=86f3b4086ddc4b20b8712c944c83b0a3205bb593
---

 vlc-android/src/org/videolan/vlc/PlaybackService.java |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 7d6e10f..5fb71a0 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -228,7 +228,7 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
             filter.addAction(VLCApplication.INCOMING_CALL_INTENT);
             filter.addAction(VLCApplication.CALL_ENDED_INTENT);
         }
-        registerReceiver(serviceReceiver, filter);
+        registerReceiver(mReceiver, filter);
 
         final SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);
         boolean stealRemoteControl = pref.getBoolean("enable_steal_remote_control", false);
@@ -299,7 +299,7 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
         stop();
         if (mWakeLock.isHeld())
             mWakeLock.release();
-        unregisterReceiver(serviceReceiver);
+        unregisterReceiver(mReceiver);
         if (mRemoteControlClientReceiver != null) {
             unregisterReceiver(mRemoteControlClientReceiver);
             mRemoteControlClientReceiver = null;
@@ -432,7 +432,7 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
             changeAudioFocusFroyoOrLater(acquire);
     }
 
-    private final BroadcastReceiver serviceReceiver = new BroadcastReceiver() {
+    private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
         @Override
         public void onReceive(Context context, Intent intent) {
             String action = intent.getAction();



More information about the Android mailing list