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

Commit a60a96f2 authored by Louis Chang's avatar Louis Chang
Browse files

Prevent system restart while updating package during boot

No-op if RWC is not yet created.

Bug: 298000744
Test: wm presubmit
Change-Id: I5d8ee2fb6cbbdd5a4213309089bcb707aa21b21a
parent bf3c622e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6177,6 +6177,8 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
        @Override
        public void onPackageReplaced(ApplicationInfo aInfo) {
            synchronized (mGlobalLock) {
                // In case if setWindowManager hasn't been called yet when booting.
                if (mRootWindowContainer == null) return;
                mRootWindowContainer.updateActivityApplicationInfo(aInfo);
            }
        }