From 1e9da8b5aa88299fa60699c5e06fe06758721090 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Wed, 14 Feb 2018 16:16:40 -0800 Subject: [PATCH] Fixing crash when window is not attached Bug: 72233154 Change-Id: Ibe94f5804be85b0df9180c508e4ae7afe3ba9a1a --- .../src/com/android/quickstep/TouchInteractionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/TouchInteractionService.java b/quickstep/src/com/android/quickstep/TouchInteractionService.java index 75fd78e290..9c5e942601 100644 --- a/quickstep/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/src/com/android/quickstep/TouchInteractionService.java @@ -251,7 +251,7 @@ public class TouchInteractionService extends Service { @Override public void accept(MotionEvent ev) { - if (!mTarget.getWindowId().isFocused()) { + if (!mTarget.hasWindowFocus()) { return; } int action = ev.getActionMasked();