Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e9da8b5 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing crash when window is not attached

Bug: 72233154
Change-Id: Ibe94f5804be85b0df9180c508e4ae7afe3ba9a1a
parent ff02cd54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();