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

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

Report task id for a finishing root activity

Task#getRootActivity() uses setToBottomIfNone=false which will
ignore all finishing activities. That causes Activity#isRootOfTask
to return a different result if the root activity is finishing.

So change to check ActivityRecord#isRootOfTask() that uses
ignoreRelinquishIdentity=false and setToBottomIfNone=true, which
can return the actual hierarchy root of task.

Fix: 420539568
Flag: EXEMPT bugfix
Test: TaskTests#testGetRootActivity_allFinishing
Change-Id: I659cdf4f433cee3dd9da2f6ce604eb29182dfe06
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