summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vladislav Kaznacheev <kaznacheev@google.com> 2016-04-19 15:24:52 -0700
committer Vladislav Kaznacheev <kaznacheev@google.com> 2016-04-20 04:51:40 +0000
commit598d40d93713470b7a4b02036cbea8ba9ee7ef90 (patch)
tree3e868d251dd1040a9f8137b80832b1ff15cb833a
parent0fb51357afb64a034a59f68a926f79d18213c72c (diff)
Send ACTION_DRAG_EXITED when the pointer moves over a non-touchable window
Bug: 28276601 Change-Id: Ic8da5c5ae422a9c9dd2d5bef898ee36a66b73afd
-rw-r--r--services/core/java/com/android/server/wm/DragState.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/services/core/java/com/android/server/wm/DragState.java b/services/core/java/com/android/server/wm/DragState.java
index aace5e7136ca..ffe03361b37f 100644
--- a/services/core/java/com/android/server/wm/DragState.java
+++ b/services/core/java/com/android/server/wm/DragState.java
@@ -420,12 +420,7 @@ class DragState {
void notifyLocationLw(float x, float y) {
// Tell the affected window
WindowState touchedWin = mDisplayContent.getTouchableWinAtPointLocked(x, y);
- if (touchedWin == null) {
- if (DEBUG_DRAG) Slog.d(TAG_WM, "No touched win at x=" + x + " y=" + y);
- return;
- }
-
- if (!isWindowNotified(touchedWin)) {
+ if (touchedWin != null && !isWindowNotified(touchedWin)) {
// The drag point is over a window which was not notified about a drag start.
// Pretend it's over empty space.
touchedWin = null;