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

Commit c72eb98d authored by Louis Chang's avatar Louis Chang Committed by Android (Google) Code Review
Browse files

Merge "Fix NullPointerException" into main

parents 89f87931 f3cc20ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8949,7 +8949,7 @@ public class WindowManagerService extends IWindowManager.Stub
        final ActivityRecord touchedApp = t.getActivityRecord();
        if (touchedApp != null && touchedApp.getTask() != null) {
            final ActivityRecord top = touchedApp.getTask().topRunningActivity();
            if (top != touchedApp && top.getTaskFragment().getBounds().contains(
            if (top != null && top != touchedApp && top.getTaskFragment().getBounds().contains(
                    touchedApp.getTaskFragment().getBounds())) {
                // This is a special case where the pointer-down-outside focus on an Activity that's
                // entirely occluded by the task top running activity, this is possible if the