diff options
| author | 2022-11-09 22:54:26 +0800 | |
|---|---|---|
| committer | 2022-11-11 06:34:50 +0000 | |
| commit | 37ff5d90c18a6ce5f65d421c1e1b7f340aa4feff (patch) | |
| tree | e437a06cbc709c83ab6957c0c3117498907aa16d /libs/androidfw/AssetsProvider.cpp | |
| parent | 8d6647d4735e47305ed4db54e405071097a27da1 (diff) | |
Wake up dream after resuming the moving to front task
Otherwise an activity with turn-screen-on flag cannot take effect
and receive new intent when launching it under dreaming. It will
become normal after the second try.
Because currentLaunchCanTurnScreenOn will be false after relayout
(WS#prepareWindowToDisplayDuringRelayout), then canTurnScreenOn()
will be false before calling resumeTargetRootTaskIfNeeded(), then
wakeUp is not called so the screen doesn't turn on and the dream
activity is still on top.
Fixes: 257533814
Test: ActivityStarterTests#testRecycleTaskWakeUpWhenDreaming
Change-Id: I457a7104068a57b010507a776094b2f354b6450a
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions