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

Commit 97de281b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix system crash during RWC#resumeHomeActivity called."

parents 648db745 553fec22
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -3059,7 +3059,11 @@ class ActivityStack extends ConfigurationContainer {
            // activity in home stack.
            // activity in home stack.
            // See {@link #mInResumeTopActivity}.
            // See {@link #mInResumeTopActivity}.
            mService.mH.post(
            mService.mH.post(
                    () -> mRootActivityContainer.resumeHomeActivity(prev, reason, mDisplayId));
                    () -> {
                        synchronized (mService.mGlobalLock) {
                            mRootActivityContainer.resumeHomeActivity(prev, reason, mDisplayId);
                        }
                    });
            return true;
            return true;
        } else {
        } else {
            return mRootActivityContainer.resumeHomeActivity(prev, reason, mDisplayId);
            return mRootActivityContainer.resumeHomeActivity(prev, reason, mDisplayId);