diff options
| author | 2024-03-04 15:09:13 +0800 | |
|---|---|---|
| committer | 2024-03-06 01:03:22 +0800 | |
| commit | ca8afc4cc87ead6f7dce2bd77ef55cd1062f430d (patch) | |
| tree | fb40fb47f6ae00673a6553df4219aa85200e7d80 /libs/input/SpriteController.cpp | |
| parent | d7c542d1d1eda1d248cb8841e1cbb4e0f266c112 (diff) | |
Simplify some legacy path of resume activity
- Simplify the "notUpdated" logic in resumeTopActivity. Because
configuration change should only either relaunch or dispatch
change to activity, the purpose of early return is only to
avoid scheduling. The diff-top condition never satisfies.
- Pass DisplayContent directly to ensureVisibilityAndConfig
since ATM/WM hierarchy is unified.
- Simplify usages if completeResumeLocked. It doesn't contain
any IPC so it should never throw exception. And the visibility
should be set by the callers (resumeTopActivity/realStartActivity)
rather than itself. That reduces redundant visibility changes
when launching acitivity while device is locked.
Bug: 163976519
Test: RootWindowContainerTests
Change-Id: I90d68e90ea89bb87171f8f52e74b8b51fae057c8
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions