Commit Graph

11 Commits

Author SHA1 Message Date
Vadim Caen
ee44c4dc1e Disable splash screen for launches from widget.
The transition from a widget to the splash screen icon feels
odd because of the difference in shapes. Disable for S and rework that
in T.

Test: Manually tested with clock and Calendar
Bug: 197504657
Change-Id: Ia375885af967d6ad282dcc7325ad905731c8734d
2021-08-27 19:17:03 +02:00
Cyrus Boadway
9dd0351ed1 Merge "Use icon splash screen when starting activity from widget interaction" into sc-dev 2021-06-22 18:13:52 +00:00
Cyrus Boadway
f158ec33d8 Use icon splash screen when starting activity from widget interaction
Set the flag to use the icon splash screen rather than the empty splash
screen when starting an activity from a widget interaction.

Bug: 191738655
Test: manual
Change-Id: Iff771a43648bbf6dfb88e2a6749c4526fd17da07
2021-06-22 10:14:06 +00:00
Sunny Goyal
696c612964 Fixing TaskView.launchTask.onEndCallback is not called
Sometimes onAnimaitonCancelled can be called without onCreate. Calling
onEnd in this case so that the sate is cleared

Removing additional subclassing for the runner

Bug: 190856140
Test: Manual
Change-Id: If105cb343cab446a4eac90a45184ce50c6e4c485
2021-06-21 16:06:40 -07:00
Yogisha Dixit
4ff5ee3a8f Add new log events for widgets.
Design doc: go/widgets-logging

Bug: 185778648
Test: manual
Change-Id: Ia3c6edb87766a33e77865e9461e7101a1df864c1
2021-06-04 14:52:37 +01:00
Pierre Barbier de Reuille
1c52d1ee12 Correct QuickStep interaction handler.
With the current implementation, all interactions happen on the main
view, preventing any button or clickable object from working.

Fix: 188775840
Test: Using an App Widget with checkboxes
Change-Id: I1ec6391a36b6a3795545acb5e08dde0d3a2b2ac8
2021-05-20 14:48:00 +01:00
Cyrus Boadway
960ab121db Fix SDK guard
Use dev-friendly utility instead of Build version codes.

Bug: 169042867
Test: manual
Change-Id: I528bafdcad8644e6f96caf5ada4f44ed2b8dff06
2021-05-14 16:35:40 +00:00
Cyrus Boadway
c169e5b9af Register a remote animation for the next activity start
Widgets are permitted to start broadcast receivers which launch
activities, otherwise known as a broadcast trampoline. Unfortunately,
launch animations provided through ActivityOptions are not applied to
the activity launch.

If a widget interaction's pending intent is not an activity, set a
return animation for the next activity start, in the event it starts an
activity.

Bug: 169042867
Test: presubmit
Change-Id: Ibbee9cadcd5153e285433fcb1b8038d77b1384a2
2021-05-13 17:56:14 +00:00
Cyrus Boadway
04b8ac607e Add NEW_TASK flag to Quickstep App Widget activity start
Include the NEW_TASK flag to activity starts launched from Quickstep
hosted App Widgets.

This is consistent with the default non-Quickstep generated
ActivityOptions from RemoteViews::getLaunchOptions.

Bug: 169042867
Test: manual
Change-Id: Iba370731f4126d92a11a4e348e74888b533d4d8b
2021-05-04 18:38:48 +00:00
Cyrus Boadway
3bdfc3cd2d 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
2021-04-30 09:37:53 +00:00
Cyrus Boadway
0d309db47e Use Quickstep ActivityOptions when launching activities from App Widgets
Set a Quickstep specific InteractionHandler on QuickstepLauncher's
AppWidgetHost, which provides QuickstepTransitionManager-generated
ActivityOptions when starting activities from app widget interactions.

Bug: 169042867
Test: manual
Topic: quickstep-widget-app-launch
Change-Id: I231122b09aede940c047f19a5b5d1e7c562f6d3f
2021-04-16 09:42:46 +00:00