Merge "Use isTablet instead of isPhone for check" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-05-04 11:52:53 +00:00
committed by Android (Google) Code Review

View File

@@ -89,9 +89,9 @@ public class AllAppsState extends LauncherState {
@Override
public int getVisibleElements(Launcher launcher) {
// Don't add HOTSEAT_ICONS for phones in ALL_APPS state.
return launcher.getDeviceProfile().isPhone ? ALL_APPS_CONTENT
: ALL_APPS_CONTENT | HOTSEAT_ICONS;
// Don't add HOTSEAT_ICONS for non-tablets in ALL_APPS state.
return launcher.getDeviceProfile().isTablet ? ALL_APPS_CONTENT | HOTSEAT_ICONS
: ALL_APPS_CONTENT;
}
@Override