[Android] Audio player: fix a crash that happens when an item is dragged over the player header

Adrien Maglo git at videolan.org
Fri Jan 24 09:24:54 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri Jan 24 09:23:51 2014 +0100| [1ad3b4e8398c9a074c5a787f2bbbb67c42d76e48] | committer: Adrien Maglo

Audio player: fix a crash that happens when an item is dragged over the player header

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

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

diff --git a/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java b/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
index 846f302..58c0b37 100644
--- a/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
+++ b/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
@@ -553,7 +553,10 @@ public class SlidingPaneLayout extends ViewGroup {
             return super.onTouchEvent(ev);
         }
 
-        mDragHelper.processTouchEvent(ev);
+        try {
+            mDragHelper.processTouchEvent(ev);
+        }
+        catch (IllegalArgumentException ex) { }
 
         final int action = ev.getAction();
 



More information about the Android mailing list