diff options
| author | 2019-05-29 15:00:30 -0700 | |
|---|---|---|
| committer | 2019-05-29 15:00:30 -0700 | |
| commit | d447030e718919a98355b54be085712695c1811a (patch) | |
| tree | 3615a211b181292a28cd9d698a2daac35134db1a | |
| parent | 65d3a07af62b8be86b54bd020ded96f9f73ae4ba (diff) | |
| parent | 89ebf3f6742ff30d9de8a731b34b6e8606e68236 (diff) | |
Merge "Close windows on ACTION_UP when touched outside" into qt-dev
am: 89ebf3f674
Change-Id: I845e4979cb3e7cc32775b9ac8083ee0802d6a390
| -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; |