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:
Luca Zuccarini
2024-05-24 14:31:01 +00:00
parent f6d91d2d37
commit 52545edb41
4 changed files with 251 additions and 49 deletions

View File

@@ -238,5 +238,12 @@ public class LauncherAnimationRunner extends RemoteAnimationRunnerCompat {
@Override
@UiThread
default void onAnimationCancelled() {}
/**
* Returns whether this animation factory supports a tightly coupled return animation.
*/
default boolean supportsReturnTransition() {
return false;
}
}
}