[Android] Workaround for the double-click issue on HTC devices

Ludovic Fauvet git at videolan.org
Mon Nov 5 15:32:52 CET 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Nov  5 15:30:57 2012 +0100| [c5af06483a9bb254cfb7fab27773bfba9e500984] | committer: Ludovic Fauvet

Workaround for the double-click issue on HTC devices

Blind commit, may not work.

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

 vlc-android/src/org/videolan/vlc/RemoteControlClientReceiver.java |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/RemoteControlClientReceiver.java b/vlc-android/src/org/videolan/vlc/RemoteControlClientReceiver.java
index b87fbed..f12d465 100644
--- a/vlc-android/src/org/videolan/vlc/RemoteControlClientReceiver.java
+++ b/vlc-android/src/org/videolan/vlc/RemoteControlClientReceiver.java
@@ -114,8 +114,10 @@ public class RemoteControlClientReceiver extends BroadcastReceiver {
                     break;
             }
 
-            if(i != null)
+            if(i != null) {
                 context.sendBroadcast(i);
+                abortBroadcast();
+            }
         }
     }
 }



More information about the Android mailing list