Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32a05ae3 authored by Anushree Ganjam's avatar Anushree Ganjam
Browse files

Use isTablet instead of isPhone for check

Bug: 228803923
Bug: 227565451

Test: Manual.
Change-Id: If7a21495b126230de8e91126ef0f3fcf54f9c900
parent 8a341bda
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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