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

Commit dd886f80 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou Committed by android-build-merger
Browse files

Merge "Close windows on ACTION_UP when touched outside" into qt-dev am: 89ebf3f6 am: 2cd6a8ae

am: 38f3118f

Change-Id: Ia19cbe204850d1f115d7e31694e9c44d93ddfddc
parents 2878807d 38f3118f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1301,7 +1301,7 @@ public abstract class Window {
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023)
    public boolean shouldCloseOnTouch(Context context, MotionEvent event) {
        final boolean isOutside =
                event.getAction() == MotionEvent.ACTION_DOWN && isOutOfBounds(context, event)
                event.getAction() == MotionEvent.ACTION_UP && isOutOfBounds(context, event)
                || event.getAction() == MotionEvent.ACTION_OUTSIDE;
        if (mCloseOnTouchOutside && peekDecorView() != null && isOutside) {
            return true;