Fade out scrim when swiping to home
Bug: 134517106 Change-Id: Ica725e3a327c1c069e3859732ea6a878d361a3d8
This commit is contained in:
1 parent
ed45267bf9
commit
ae087dc9b8
3 files changed
+29
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user