Skip to content
Commit dec66365 authored by wilsonshih's avatar wilsonshih
Browse files

Fix ActivityOption#setTaskOverlay can be covered by other activity.

Although ActivityRecord#setTaskOverlay has set setAlwaysOnTop, but it
is not useful in Task#getAdjustedChildPosition, because when sorting
activities in a task, it is meanless to check the windowing mode for
an activity. A simple solution is to override the isAlwaysOnTop method.

And because Task#showToCurrentUser will depends on current top task,
so we cannot add the task before adjusting the position.

Bug: 181721787
Test: atest RootTaskTests StartActivityAsUserTests StartActivityTests
Change-Id: I7fdf19d04bf71fa97a841223c06fad9a7e0b2ee4
parent 05555262
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