If didSomething condition is reversed.
updateOomAdjLocked() should be called when didSomething is true. When startActivity, WindowManager post a runnable to DisplayThread and ActivityManagerService to update UidRecord's proc state, because the thread switch, sometimes proc state does not get updated on time. This fix will make updateOomAdjLocked() is called immediately after startActivity. Bug: 155110902 Test: regression test atest cts/tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java Change-Id: Icdb93fbd25c3c281c7dfdaafe190765630e7b64e
Loading
Please register or sign in to comment