1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-22 19:12:45 +01:00

Don't make controls visible when moving popup

This commit is contained in:
Mauricio Colli 2018-08-21 23:04:52 -03:00
parent 69fc571b56
commit a01d6eaf72
No known key found for this signature in database
GPG Key ID: F200BFD6F29DDD85

View File

@ -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);
}