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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user