Skip to content
Snippets Groups Projects
Commit f86dc0d6 authored by Louis Chang's avatar Louis Chang
Browse files

Deliver latest intent extras to recents

Activity was destroyed when moved to background if
don't-keep-activities dev options had set. Swiping up
gesture would start recents behind top activity for recents
animation. However, the recents activity was restarted
With the intent which the activity was originally created, not
the latest intent came along with #startRecentsActivity().

Bug: 156772625
Test: swipe up with don't-keep-activities dev options set
Change-Id: I7a60a36e64b390099caa26500161f707330dab35
parent f04e4377
No related branches found
No related tags found
No related merge requests found
......@@ -233,6 +233,8 @@ class RecentsAnimation implements RecentsAnimationCallbacks,
// duration of the gesture that is driven by the recents component
targetActivity.mLaunchTaskBehind = true;
mLaunchedTargetActivity = targetActivity;
// TODO(b/156772625): Evaluate to send new intents vs. replacing the intent extras.
targetActivity.intent.replaceExtras(mTargetIntent);
// Fetch all the surface controls and pass them to the client to get the animation
// started. Cancel any existing recents animation running synchronously (do not hold the
......
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