mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Creating landscape and portrait device profiles at app initialization
Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
This commit is contained in:
@@ -161,7 +161,6 @@ public class WorkspaceStateTransitionAnimation {
|
||||
mLauncher = launcher;
|
||||
mWorkspace = workspace;
|
||||
|
||||
LauncherAppState app = LauncherAppState.getInstance();
|
||||
DeviceProfile grid = mLauncher.getDeviceProfile();
|
||||
Resources res = launcher.getResources();
|
||||
mAllAppsTransitionTime = res.getInteger(R.integer.config_workspaceUnshrinkTime);
|
||||
@@ -170,7 +169,7 @@ public class WorkspaceStateTransitionAnimation {
|
||||
mSpringLoadedShrinkFactor =
|
||||
res.getInteger(R.integer.config_workspaceSpringLoadShrinkPercentage) / 100f;
|
||||
mWorkspaceScrimAlpha = res.getInteger(R.integer.config_workspaceScrimAlpha) / 100f;
|
||||
mOverviewModeShrinkFactor = grid.getOverviewModeScale();
|
||||
mOverviewModeShrinkFactor = grid.getOverviewModeScale(Utilities.isRtl(res));
|
||||
mWorkspaceFadeInAdjacentScreens = grid.shouldFadeAdjacentWorkspaceScreens();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user