[Android] RemoteControl: Remove unnecessary cast

Jean-Baptiste Kempf git at videolan.org
Sat May 23 17:15:40 CEST 2015


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat May 23 17:13:49 2015 +0200| [bf9c92045a831331e3a0af32fb2708c212d5b64e] | committer: Jean-Baptiste Kempf

RemoteControl: Remove unnecessary cast

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

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

diff --git a/vlc-android/src/org/videolan/vlc/RemoteControlClientReceiver.java b/vlc-android/src/org/videolan/vlc/RemoteControlClientReceiver.java
index eaaa524..d50f7ea 100644
--- a/vlc-android/src/org/videolan/vlc/RemoteControlClientReceiver.java
+++ b/vlc-android/src/org/videolan/vlc/RemoteControlClientReceiver.java
@@ -48,7 +48,7 @@ public class RemoteControlClientReceiver extends BroadcastReceiver {
 
         if(action.equalsIgnoreCase(Intent.ACTION_MEDIA_BUTTON)) {
 
-            KeyEvent event = (KeyEvent) intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);
+            KeyEvent event = intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);
             if (event == null)
                 return;
 



More information about the Android mailing list