Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ca8afc4c authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent d7c542d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment