Second workspace page icons should not show up when all apps is shown in landscape.

b/29931405

> Also some method names to setTranslation -> setTranslationAndAlpha to
match its implementation.

Change-Id: Icb6ec5df8a267a9024803c70a694ea9b76e5e34d
This commit is contained in:
Hyunyoung Song
2016-07-06 15:03:59 -07:00
parent 8db7d68aac
commit 230b2b7f44
3 changed files with 9 additions and 8 deletions

View File

@@ -288,14 +288,14 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
mDecelInterpolator.getInterpolation(alpha))));
mAppsView.getContentView().setAlpha(alpha);
mAppsView.setTranslationY(progress);
mWorkspace.setWorkspaceTranslation(Direction.Y,
mWorkspace.setWorkspaceTranslationAndAlpha(Direction.Y,
PARALLAX_COEFFICIENT * (-mShiftRange + progress),
mAccelInterpolator.getInterpolation(workspaceHotseatAlpha));
if (!mLauncher.getDeviceProfile().isVerticalBarLayout()) {
mWorkspace.setHotseatTranslation(Direction.Y, -mShiftRange + progress,
mWorkspace.setHotseatTranslationAndAlpha(Direction.Y, -mShiftRange + progress,
mAccelInterpolator.getInterpolation(workspaceHotseatAlpha));
} else {
mWorkspace.setHotseatTranslation(Direction.Y,
mWorkspace.setHotseatTranslationAndAlpha(Direction.Y,
PARALLAX_COEFFICIENT * (-mShiftRange + progress),
mAccelInterpolator.getInterpolation(workspaceHotseatAlpha));
}