Add return animations to Toast search results.
This only applies to targets that already use the Animation library for launch animations. Bug: 336719605 Bug: 298089923 Flag: com.android.launcher3.enable_container_return_animations Flag: com.android.systemui.shared.return_animation_framework_library Test: tested manually with flag on and off Change-Id: Ib824e78fa8b1b226b32d23d8325f06b496ba5deb
This commit is contained in:
1 parent
f6d91d2d37
commit
52545edb41
4 files changed
+251
-49
No files matched your search
@@ -1182,7 +1182,6 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer
|
||||
: Display.DEFAULT_DISPLAY);
|
||||
activityOptions.options.setPendingIntentBackgroundActivityStartMode(
|
||||
ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED);
|
||||
addLaunchCookie(item, activityOptions.options);
|
||||
return activityOptions;
|
||||
}
|
||||
|
||||
@@ -1206,19 +1205,6 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer
|
||||
mSplitWithKeyboardShortcutController.enterStageSplit(leftOrTop);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a new launch cookie for the activity launch if supported.
|
||||
*
|
||||
* @param info the item info for the launch
|
||||
* @param opts the options to set the launchCookie on.
|
||||
*/
|
||||
public void addLaunchCookie(ItemInfo info, ActivityOptions opts) {
|
||||
IBinder launchCookie = getLaunchCookie(info);
|
||||
if (launchCookie != null) {
|
||||
opts.setLaunchCookie(launchCookie);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a new launch cookie for the activity launch if supported.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user