Merge "Fixing crash when window is not attached" into ub-launcher3-master

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2018-02-15 00:28:32 +00:00
commit 1672549d9f
1 file changed
+1 -1
@@ -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();