From 2ad0d47f6115241c73b38201e89c5584ecadc813 Mon Sep 17 00:00:00 2001 From: mitosagi <54105954+mitosagi@users.noreply.github.com> Date: Sat, 2 Nov 2019 12:12:25 +0900 Subject: [PATCH] Fix popup player gestures --- .../main/java/org/schabi/newpipe/player/PopupVideoPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/PopupVideoPlayer.java b/app/src/main/java/org/schabi/newpipe/player/PopupVideoPlayer.java index 68446ed9f..969c47990 100644 --- a/app/src/main/java/org/schabi/newpipe/player/PopupVideoPlayer.java +++ b/app/src/main/java/org/schabi/newpipe/player/PopupVideoPlayer.java @@ -1036,7 +1036,7 @@ public final class PopupVideoPlayer extends Service { public boolean onTouch(View v, MotionEvent event) { popupGestureDetector.onTouchEvent(event); if (playerImpl == null) return false; - if (event.getPointerCount() == 2 && !isResizing) { + if (event.getPointerCount() == 2 && !isMoving && !isResizing) { if (DEBUG) Log.d(TAG, "onTouch() 2 finger pointer detected, enabling resizing."); playerImpl.showAndAnimateControl(-1, true); playerImpl.getLoadingPanel().setVisibility(View.GONE);