Fade out scrim when swiping to home

Bug: 134517106
Change-Id: Ica725e3a327c1c069e3859732ea6a878d361a3d8
This commit is contained in:
Tony
2019-06-04 19:25:03 -07:00
parent ed45267bf9
commit ae087dc9b8
3 changed files with 29 additions and 2 deletions

View File

@@ -130,7 +130,10 @@ public class WorkspaceStateTransitionAnimation {
propertySetter.setFloat(mWorkspace.getPageIndicator(), View.TRANSLATION_Y,
hotseatScaleAndTranslation.translationY, translationInterpolator);
// Set scrim
setScrim(propertySetter, state);
}
public void setScrim(PropertySetter propertySetter, LauncherState state) {
WorkspaceAndHotseatScrim scrim = mLauncher.getDragLayer().getScrim();
propertySetter.setFloat(scrim, SCRIM_PROGRESS, state.getWorkspaceScrimAlpha(mLauncher),
LINEAR);