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

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

Preserve task when clearing top activities

There is no guarantee that clear-top won't finish all activities
in the task, such as the last activity is declared as default
launch mode and the intent flags don't have SINGLE_TOP, then it
will also be finished.

Otherwise when adding the new activity into the detached task,
it will cause NPE in onChildPositionChanged because its display
content is null.

Fixes: 224462770
Test: TaskTests#testPerformClearTop
Change-Id: Icfa0390a5881043bc55486347aa2854db100d171
parent 9675d3b8
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