[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
This commit is contained in:
Becky Qiu committed 2021-02-10 03:07:40 +00:00
1 parent aafa8a44a3
commit dffbdf861c
2 files changed
+7

No files matched your search

@@ -221,6 +221,12 @@ public class TaskOverlayFactory implements ResourceBasedOverride {
return null; 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. * Gets the system shortcut for the screenshot that will be added to the task menu.
*/ */
@@ -1080,6 +1080,7 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
progress = Utilities.boundToRange(progress, 0, 1); progress = Utilities.boundToRange(progress, 0, 1);
mFullscreenProgress = progress; mFullscreenProgress = progress;
mIconView.setVisibility(progress < 1 ? VISIBLE : INVISIBLE); mIconView.setVisibility(progress < 1 ? VISIBLE : INVISIBLE);
getThumbnail().getTaskOverlay().setFullscreenProgress(progress);
updateTaskScaling(); updateTaskScaling();