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

Commit 5b3cfe42 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Always propagate the reported proc_state to WindowProcessController.

When forceProcessStateUpTo() is used, we update the mRepProcState
but we don't propagate this to WindowProcessController which means
it won't always know when an app came out of the Cached state and
won't send any delayed configuration-changd event.

Bug: 274240050
Test: manual
Change-Id: Ie7f90d7fca381bc552683a69e5278dc5992a94e3
parent d9f955a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -618,7 +618,7 @@ final class ProcessStateRecord {
    void forceProcessStateUpTo(int newState) {
        if (mRepProcState > newState) {
            synchronized (mProcLock) {
                mRepProcState = newState;
                setReportedProcState(newState);
                setCurProcState(newState);
                setCurRawProcState(newState);
                mApp.getPkgList().forEachPackage((pkgName, holder) ->