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

Commit e5275c80 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Do not account recents activity as previous process

When using 3rd party home, the RecentsActivity will be involved in
gesture navigation. E.g. when swiping to home, both the closing app
and recents will be stopped to update previous process.

Because RecentsActivity should already keep a higher oom-adj (100)
by the service binding from systemui to its TouchInteractionService,
it's better to let the real last used app be the previous process.

Also optimize isRecentsComponent a bit because uid check is faster
and easier to skip unnecessary string comparison.

Fix: 415340877
Flag: EXEMPT bugfix
Test: ActivityTaskManagerServiceTests#testUpdatePreviousProcess
Test: Set 3rd party launcher as default home.
      Use swipe-up gesture to return from an app to home.
      "adb shell dumpsys activity o | grep mPreviousProcess"
      The output should show the app.
Change-Id: I88cbb22319f3486a7456d39b7820a4cb9423bc34
parent bccf1b44
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