Commit 89bfb4dc authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Video player: Disable quick scale gesture

parent c28a62e1
......@@ -59,6 +59,7 @@ import android.support.design.widget.Snackbar;
import android.support.v4.app.FragmentManager;
import android.support.v4.content.LocalBroadcastManager;
import android.support.v4.view.GestureDetectorCompat;
import android.support.v4.view.ScaleGestureDetectorCompat;
import android.support.v4.view.ViewCompat;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AlertDialog;
......@@ -2038,8 +2039,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
mDetector = new GestureDetectorCompat(this, mGestureListener);
mDetector.setOnDoubleTapListener(mGestureListener);
}
if (mScaleGestureDetector == null)
if (mScaleGestureDetector == null) {
mScaleGestureDetector = new ScaleGestureDetector(this, mScaleListener);
ScaleGestureDetectorCompat.setQuickScaleEnabled(mScaleGestureDetector, false);
}
if (mPlaybackSetting != DelayState.OFF) {
if (event.getAction() == MotionEvent.ACTION_UP) endPlaybackSetting();
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment