[Android] Not pinch-to-zoom for Android 2.x

Geoffrey Métais git at videolan.org
Mon May 2 14:57:52 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon May  2 14:57:01 2016 +0200| [ea329b6fac1b67b7ca88b609a4febcbfb3dd8bf0] | committer: Geoffrey Métais

Not pinch-to-zoom for Android 2.x

VLCVout does not support resizing on old Android versions

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

 vlc-android/src/org/videolan/vlc/gui/view/PopupLayout.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/view/PopupLayout.java b/vlc-android/src/org/videolan/vlc/gui/view/PopupLayout.java
index cf9b58e..ec29a5c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/view/PopupLayout.java
+++ b/vlc-android/src/org/videolan/vlc/gui/view/PopupLayout.java
@@ -117,7 +117,8 @@ public class PopupLayout extends RelativeLayout implements ScaleGestureDetector.
         params.gravity = Gravity.BOTTOM | Gravity.START;
         params.x = 50;
         params.y = 50;
-        mScaleGestureDetector = new ScaleGestureDetector(context, this);
+        if (AndroidUtil.isHoneycombOrLater())
+            mScaleGestureDetector = new ScaleGestureDetector(context, this);
         setOnTouchListener(this);
         mWindowManager.addView(this, params);
         mLayoutParams = (WindowManager.LayoutParams)getLayoutParams();



More information about the Android mailing list