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

Commit f06b8c17 authored by Craig Mautner's avatar Craig Mautner
Browse files

Add null test and remove redundant call.

- Did not handle the case where mTaskIdToTask returned null.
Fixes bug 8646178.
- updateInputWindowsLw() was being called in removeWindows
immediately after it was called in performLayoutAndUpdateSurfaces.

Change-Id: I1b8bcfadcc93f8c6638fd4247b426af77feeee23
parent 69ada558
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2380,7 +2380,6 @@ public class WindowManagerService extends IWindowManager.Stub
                updateFocusedWindowLocked(UPDATE_FOCUS_WILL_PLACE_SURFACES,
                        false /*updateInputWindows*/);
                performLayoutAndPlaceSurfacesLocked();
                mInputMonitor.updateInputWindowsLw(false /*force*/);
                if (win.mAppToken != null) {
                    win.mAppToken.updateReportedVisibilityLocked();
                }
+4 −1
Original line number Diff line number Diff line
@@ -698,7 +698,10 @@ final class WindowState implements WindowManagerPolicy.WindowState {

    TaskStack getStack() {
        if (mAppToken != null) {
            return mService.mTaskIdToTask.get(mAppToken.groupId).mStack;
            Task task = mService.mTaskIdToTask.get(mAppToken.groupId);
            if (task != null) {
                return task.mStack;
            }
        }
        return null;
    }