From dffbdf861c8d382e2a46417f4c0f04960bafc96d Mon Sep 17 00:00:00 2001 From: Becky Qiu Date: Tue, 9 Feb 2021 12:27:37 -0800 Subject: [PATCH] [Overview Sharing] Pass the full screen progress to task overlay. This is to change the alpha value of the suggest view when user swipe down. Bug: 179514465 Test: local Change-Id: Idfa66ff6d9bb43f35f859df828a19e3b47abcd65 --- quickstep/src/com/android/quickstep/TaskOverlayFactory.java | 6 ++++++ quickstep/src/com/android/quickstep/views/TaskView.java | 1 + 2 files changed, 7 insertions(+) diff --git a/quickstep/src/com/android/quickstep/TaskOverlayFactory.java b/quickstep/src/com/android/quickstep/TaskOverlayFactory.java index 93ebd5aa26..844d6f5b55 100644 --- a/quickstep/src/com/android/quickstep/TaskOverlayFactory.java +++ b/quickstep/src/com/android/quickstep/TaskOverlayFactory.java @@ -221,6 +221,12 @@ public class TaskOverlayFactory implements ResourceBasedOverride { return null; } + /** + * Sets full screen progress to the task overlay. + */ + public void setFullscreenProgress(float progress) { + } + /** * Gets the system shortcut for the screenshot that will be added to the task menu. */ diff --git a/quickstep/src/com/android/quickstep/views/TaskView.java b/quickstep/src/com/android/quickstep/views/TaskView.java index 0654ab1e5d..f420de6a27 100644 --- a/quickstep/src/com/android/quickstep/views/TaskView.java +++ b/quickstep/src/com/android/quickstep/views/TaskView.java @@ -1080,6 +1080,7 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable { progress = Utilities.boundToRange(progress, 0, 1); mFullscreenProgress = progress; mIconView.setVisibility(progress < 1 ? VISIBLE : INVISIBLE); + getThumbnail().getTaskOverlay().setFullscreenProgress(progress); updateTaskScaling();