commit | bce0a3a4160549bb4f252ca9e65149c335e690c6 | [log] [tgz] |
---|---|---|
author | Hui Yu <huiyu@google.com> | Wed Jul 01 11:19:27 2020 -0700 |
committer | Hui Yu <huiyu@google.com> | Wed Jul 01 11:25:46 2020 -0700 |
tree | eedeaccc62b210a5236dc9993c956e3faff2dc40 | |
parent | 413150f2ada870c62b769d29646990805cb43a49 [diff] |
Check PendingStartActivityUids in getAppStartModeLocked. While starting activity, WindowManager posts a runnable to DisplayThread to updateOomAdj. The UidRecord update could be delayed. In getAppStartModeLocked(), before checking UidRecord, check PendingStartActivityUids to determine if the uid is in foreground state. Bug: 160213874 Test: Reproduce steps in b/160213874, launch GCA and take a photo immediately. Change-Id: Ieb984d2f629d607abfbda89ca00f8785cf5923fd