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
This commit is contained in:
Sudheer Shanka
2023-04-07 09:04:58 +00:00
parent d9f955a5cc
commit 5b3cfe42f0

View File

@@ -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) ->