Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7befc2a9 authored by Merissa Mitchell's avatar Merissa Mitchell
Browse files

[PIP2] Enable drag-to-dismiss.

The implementation was previously commented out to isolate fling
animation.

Recall: http://recall/clips/8bf45956-a3a1-4c2c-8988-f0c0ef6972b3

Bug: 372772835
Test: Launch PiP and manually verify drag-to-dismiss works.
Flag: com.android.wm.shell.enable_pip2
Change-Id: I038fdbc60fb9f2e5b8ed14a4fcae141e05317300
parent f613f7fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -582,7 +582,6 @@ public class PipTouchHandler implements PipTransitionState.PipTransitionStateCha
            return true;
        }

        /*
        if ((ev.getAction() == MotionEvent.ACTION_DOWN || mTouchState.isUserInteracting())
                && mPipDismissTargetHandler.maybeConsumeMotionEvent(ev)) {
            // If the first touch event occurs within the magnetic field, pass the ACTION_DOWN event
@@ -599,6 +598,7 @@ public class PipTouchHandler implements PipTransitionState.PipTransitionStateCha
            return true;
        }

        /*
        // Ignore the motion event When the entry animation is waiting to be started
        if (!mTouchState.isUserInteracting() && mPipTaskOrganizer.isEntryScheduled()) {
            ProtoLog.wtf(WM_SHELL_PICTURE_IN_PICTURE,