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

Commit 2570260e authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Update process lru when switching focus between visible activities

Ensure that the process of the latest touched activity refreshes the
last activity time and maintains its index at the top of the LRU.

Also add a pending flag to avoid updating intermediate state, e.g.
 Launch A
 WindowContainerTransaction {
  beginDeferResume
  reorder home to top // prev=A, update home as top -> avoid this
  reorder WallpaperActivity to top // no resumed activity
  reorder A to top // prevTopActivity becomes null
  endDeferResume
 }

Bug: 421872956
Flag: EXEMPT bugfix
Test: ActivityTaskSupervisorTests#testUpdatePendingTopForTopResumed
Change-Id: Id5f0dde7124200732747185cb8998abcf1254411
parent a08a0293
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment