commit | 32a05ae3f01b753fcfe8390bd89b7231782e5e73 | [log] [tgz] |
---|---|---|
author | Anushree Ganjam <ganjam@google.com> | Tue May 03 23:10:47 2022 +0000 |
committer | Anushree Ganjam <ganjam@google.com> | Tue May 03 23:10:47 2022 +0000 |
tree | 2ef625d805d2d46110dc34d7f3d8936cf1d1589f | |
parent | 8a341bda841720c6ee171591a78550082d786d6e [diff] |
Use isTablet instead of isPhone for check Bug: 228803923 Bug: 227565451 Test: Manual. Change-Id: If7a21495b126230de8e91126ef0f3fcf54f9c900
diff --git a/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java b/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java index c25a815..621dfb8 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 @@ @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