Create return-to-home app widget animation

If an app has been most recently launched from an app widget, when
swiped away, the app animates to the widget's position.

This is done by attributing the app launch to the widget through
the ActivityOptions's launch cookies, and using a FloatingWidgetView
throughout the animation.

Bug: 169042867
Test: manual
Change-Id: I24c2623b5b3407504a4768b076849c47f73cbae0
This commit is contained in:
Cyrus Boadway
2021-04-29 11:35:04 +00:00
parent 5f35ff021d
commit 3bdfc3cd2d
6 changed files with 224 additions and 156 deletions

View File

@@ -447,7 +447,8 @@ public abstract class BaseQuickstepLauncher extends Launcher
case LauncherSettings.Favorites.ITEM_TYPE_APPLICATION:
case LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT:
case LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT:
// Fall through and continue if it's an app or shortcut
case LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET:
// Fall through and continue if it's an app, shortcut, or widget
break;
default:
return;