diff options
author | Hui Yu <huiyu@google.com> | 2020-07-01 11:19:27 -0700 |
---|---|---|
committer | Hui Yu <huiyu@google.com> | 2020-07-01 11:25:46 -0700 |
commit | bce0a3a4160549bb4f252ca9e65149c335e690c6 (patch) | |
tree | eedeaccc62b210a5236dc9993c956e3faff2dc40 /tools/aapt2/java/JavaClassGenerator.cpp | |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions