From 5a763a25c9255b5326324f08b3e43b7e3712cd65 Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Mon, 29 Oct 2018 16:08:29 -0400 Subject: 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 --- src/com/android/launcher3/config/BaseFlags.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/com/android/launcher3/config') 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) { -- cgit v1.2.3