diff options
author | Tracy Zhou <tracyzhou@google.com> | 2018-10-29 16:08:29 -0400 |
---|---|---|
committer | Tracy Zhou <tracyzhou@google.com> | 2019-01-08 23:21:18 -0800 |
commit | 5a763a25c9255b5326324f08b3e43b7e3712cd65 (patch) | |
tree | 5fc5f1c531a8d2deb494b3fa20c9d5bf43d95809 /src/com/android/launcher3/config | |
parent | 80a6d72bc29d7e470afa51ab422c5c9ca8e3db8b (diff) | |
download | packages_apps_Trebuchet-5a763a25c9255b5326324f08b3e43b7e3712cd65.tar.gz packages_apps_Trebuchet-5a763a25c9255b5326324f08b3e43b7e3712cd65.tar.bz2 packages_apps_Trebuchet-5a763a25c9255b5326324f08b3e43b7e3712cd65.zip |
Support live tile in Overview (Pt2) - Complete functionality
- Punch a hole (by erasing part of launcher where current task is rendered) to reveal app surface drawn underneath using surface transform. We use LauncherLayoutListener before reaching OVERVIEW threshold, and TaskView after threshold due to layering constraint (it's above Overview but below All Apps)
- Render live tile following user-trigger scrolling (horizontal and vertical) by tracking the task view rect.
- When user launches the current running app (through the live tile or icon in the app drawer), finish recents animation to app.
- When user launches another app (through Overview or other entry points where user opens an app), take a screenshot of the current running app, switch to screenshot mode and launch the other app.
- Refactor ClipAnimationController#ApplyTransform to consolidate transforming by progress and by getting the current rect of the app on the screen.
Bug: 111697218
Test: manual test
Change-Id: I0ad764399e872f181a9d65dc453f0175f2b58dd1
Diffstat (limited to 'src/com/android/launcher3/config')
-rw-r--r-- | src/com/android/launcher3/config/BaseFlags.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher3/config/BaseFlags.java b/src/com/android/launcher3/config/BaseFlags.java index 449cde76f..1b1b15220 100644 --- a/src/com/android/launcher3/config/BaseFlags.java +++ b/src/com/android/launcher3/config/BaseFlags.java @@ -101,6 +101,9 @@ abstract class BaseFlags { public static final TogglableFlag QUICKSTEP_SPRINGS = new TogglableFlag("QUICKSTEP_SPRINGS", false, "Enable springs for quickstep animations"); + public static final TogglableFlag ENABLE_QUICKSTEP_LIVE_TILE = new TogglableFlag( + "ENABLE_QUICKSTEP_LIVE_TILE", false, "Enable live tile in Quickstep overview"); + public static void initialize(Context context) { // Avoid the disk read for user builds if (Utilities.IS_DEBUG_DEVICE) { |