From a01d6eaf72fd83b3320d6c6ab23d30550ad828d8 Mon Sep 17 00:00:00 2001 From: Mauricio Colli Date: Tue, 21 Aug 2018 23:04:52 -0300 Subject: [PATCH] Don't make controls visible when moving popup --- .../main/java/org/schabi/newpipe/player/PopupVideoPlayer.java | 3 --- 1 file changed, 3 deletions(-) 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 37a9e917e..2d943ea11 100644 --- a/app/src/main/java/org/schabi/newpipe/player/PopupVideoPlayer.java +++ b/app/src/main/java/org/schabi/newpipe/player/PopupVideoPlayer.java @@ -928,9 +928,6 @@ public final class PopupVideoPlayer extends Service { public boolean onScroll(MotionEvent initialEvent, MotionEvent movingEvent, float distanceX, float distanceY) { if (isResizing || playerImpl == null) return super.onScroll(initialEvent, movingEvent, distanceX, distanceY); - if (playerImpl.getCurrentState() != BasePlayer.STATE_BUFFERING - && (!isMoving || playerImpl.getControlsRoot().getAlpha() != 1f)) playerImpl.showControls(0); - if (!isMoving) { animateView(closeOverlayButton, true, 200); }