From 32a05ae3f01b753fcfe8390bd89b7231782e5e73 Mon Sep 17 00:00:00 2001 From: Anushree Ganjam Date: Tue, 3 May 2022 23:10:47 +0000 Subject: [PATCH] Use isTablet instead of isPhone for check Bug: 228803923 Bug: 227565451 Test: Manual. Change-Id: If7a21495b126230de8e91126ef0f3fcf54f9c900 --- .../android/launcher3/uioverrides/states/AllAppsState.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java b/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java index c25a815050..621dfb8dc9 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java +++ b/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java @@ -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