diff options
| author | 2019-05-29 21:51:22 +0000 | |
|---|---|---|
| committer | 2019-05-29 21:51:22 +0000 | |
| commit | 89ebf3f6742ff30d9de8a731b34b6e8606e68236 (patch) | |
| tree | 0a2c32f43ac5639856d9feaaeb1ecf9500358ad9 | |
| parent | 3759c04e2dadce186147a020b9d95a42f6efea0b (diff) | |
| parent | 45385e2ac3ee7b723fe14f10becd169f175bb419 (diff) | |
Merge "Close windows on ACTION_UP when touched outside" into qt-dev
| -rw-r--r-- | core/java/android/view/Window.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/view/Window.java b/core/java/android/view/Window.java index 9436633c0c4b..73e0e4b2eb8b 100644 --- a/core/java/android/view/Window.java +++ b/core/java/android/view/Window.java @@ -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; |