Skip to content
Commit 82a0ba84 authored by chaviw's avatar chaviw
Browse files

Clear all options from Task when any ActivityRecord consumes the options.

Multiple ActivityRecords can get the same options if they are in some state of
being launched. If the Task starts and already has ActivityRecords in the Task,
they will also get the new options. It's pretty difficult to prevent that since
they are being moved to the front, even though another activity will launch on
top. Instead, just clear all ActivityRecord's options in the same Task so only
one is ever consumed.

Fixes: 74611027
Test: Launch activity then background. Open second activity from
notification. When pressing back, window animation should start.
Test: Launch activity, press home, launch same activity. Starting
animation occurs on the second launch.
Test: testsApplyOptionsLocked

Change-Id: I72119772851102cbb71d59527c5f0256b575752b
parent 0d562bf8
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