mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Revert "Revert "Moving DeviceProfile properties into DevicePrope..."
Revert submission 33716851-revert-33672643-DataDeviceProfile1-XHYRAPLEBK Reason for revert: Error is fixed Reverted changes: /q/submissionid:33716851-revert-33672643-DataDeviceProfile1-XHYRAPLEBK Change-Id: Ib86824134955903c11e51e52dbfd6368aba1cd50
This commit is contained in:
committed by
Sebastian Franco
parent
1bec329180
commit
e1d31e5406
@@ -65,7 +65,7 @@ public class AllAppsState extends LauncherState {
|
||||
|
||||
@Override
|
||||
public ScaleAndTranslation getHotseatScaleAndTranslation(Launcher launcher) {
|
||||
if (launcher.getDeviceProfile().isTablet) {
|
||||
if (launcher.getDeviceProfile().getDeviceProperties().isTablet()) {
|
||||
return getWorkspaceScaleAndTranslation(launcher);
|
||||
} else {
|
||||
ScaleAndTranslation overviewScaleAndTranslation = LauncherState.OVERVIEW
|
||||
@@ -83,7 +83,7 @@ public class AllAppsState extends LauncherState {
|
||||
return new PageAlphaProvider(DECELERATE) {
|
||||
@Override
|
||||
public float getPageAlpha(int pageIndex) {
|
||||
return launcher.getDeviceProfile().isTablet
|
||||
return launcher.getDeviceProfile().getDeviceProperties().isTablet()
|
||||
? superPageAlphaProvider.getPageAlpha(pageIndex)
|
||||
: 0;
|
||||
}
|
||||
@@ -97,7 +97,7 @@ public class AllAppsState extends LauncherState {
|
||||
|
||||
@Override
|
||||
public int getWorkspaceScrimColor(Launcher launcher) {
|
||||
return launcher.getDeviceProfile().isTablet
|
||||
return launcher.getDeviceProfile().getDeviceProperties().isTablet()
|
||||
? launcher.getResources().getColor(R.color.widgets_picker_scrim)
|
||||
: Themes.getAttrColor(launcher, R.attr.allAppsScrimColor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user