commit | 1e9da8b5aa88299fa60699c5e06fe06758721090 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Wed Feb 14 16:16:40 2018 -0800 |
committer | Sunny Goyal <sunnygoyal@google.com> | Wed Feb 14 16:17:01 2018 -0800 |
tree | cb26c793f15defcacb706730e4d9b3c1cdfbdf41 | |
parent | ff02cd54d44ff5767264fca22a3926c9cb135f57 [diff] |
Fixing crash when window is not attached Bug: 72233154 Change-Id: Ibe94f5804be85b0df9180c508e4ae7afe3ba9a1a
diff --git a/quickstep/src/com/android/quickstep/TouchInteractionService.java b/quickstep/src/com/android/quickstep/TouchInteractionService.java index 75fd78e..9c5e942 100644 --- a/quickstep/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/src/com/android/quickstep/TouchInteractionService.java
@@ -251,7 +251,7 @@ @Override public void accept(MotionEvent ev) { - if (!mTarget.getWindowId().isFocused()) { + if (!mTarget.hasWindowFocus()) { return; } int action = ev.getActionMasked();