Skip to content
Commit cb956050 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Always remove orphaned starting windows, no matter what the state

We orphaned a starting window because of the following sequence:
- Task was moved to front, thus starting window was added.
- activityPaused on Launcher was called
- In the meantime, any other activity was launched.
- When activityPause was completed, we didn't set the visibility
of the original task *not* to true. Thus, we didn't have any
signal to remove the starting window.

Note that this was more easy to repro with trampoline activities,
but in theory can also happen without trampoline activities.

We already have a way to remove orphaned starting windows so
let's reuse them independantly of the activity state.

Test: Hot launch calendar, immediately press home again. Make sure
not starting window is leaked.
Fixes: 37888853

Change-Id: Ide72c55e66a15b44a51380208bbb29dda00f7694
parent d2915725
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