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

Commit 64969a35 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by android-build-merger
Browse files

Merge \\"Reset relaunching count is app dies during re-launch\\" into nyc-mr1-dev am: 45f8aaca

am: b89cd360

Change-Id: Ie22a2fafb6991761ac42cef1e513d7e8ff03a565
parents afceb4f2 b89cd360
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3759,6 +3759,10 @@ final class ActivityStack {
        if (getVisibleBehindActivity() == r) {
            mStackSupervisor.requestVisibleBehindLocked(r, false);
        }

        // Clean-up activities are no longer relaunching (e.g. app process died). Notify window
        // manager so it can update its bookkeeping.
        mWindowManager.notifyAppRelaunchesCleared(r.appToken);
    }

    private void removeTimeoutsForActivityLocked(ActivityRecord r) {
+7 −0
Original line number Diff line number Diff line
@@ -625,6 +625,13 @@ class AppWindowToken extends WindowToken {
        }
    }

    void clearRelaunching() {
        if (canFreezeBounds()) {
            unfreezeBounds();
        }
        mPendingRelaunchCount = 0;
    }

    void addWindow(WindowState w) {
        for (int i = allAppWindows.size() - 1; i >= 0; i--) {
            WindowState candidate = allAppWindows.get(i);
+9 −0
Original line number Diff line number Diff line
@@ -10220,6 +10220,15 @@ public class WindowManagerService extends IWindowManager.Stub
        }
    }

    public void notifyAppRelaunchesCleared(IBinder token) {
        synchronized (mWindowMap) {
            final AppWindowToken appWindow = findAppWindowToken(token);
            if (appWindow != null) {
                appWindow.clearRelaunching();
            }
        }
    }

    @Override
    public int getDockedDividerInsetsLw() {
        return getDefaultDisplayContentLocked().getDockedDividerController().getContentInsets();