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

Commit 764f67e9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Re-enable app long-press menu on Go devices" into ub-launcher3-rvc-dev

parents c475f28b 5efa076d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ public class ShortcutUtil {
     * Returns true when we should show depp shortcuts in shortcut menu for the item.
     */
    public static boolean supportsDeepShortcuts(ItemInfo info) {
        return isActive(info) && isApp(info);
        return isActive(info) && isApp(info) && !WidgetsModel.GO_DISABLE_WIDGETS;
    }

    /**
@@ -64,7 +64,7 @@ public class ShortcutUtil {
    private static boolean isActive(ItemInfo info) {
        boolean isLoading = info instanceof WorkspaceItemInfo
                && ((WorkspaceItemInfo) info).hasPromiseIconUi();
        return !isLoading && !info.isDisabled() && !WidgetsModel.GO_DISABLE_WIDGETS;
        return !isLoading && !info.isDisabled();
    }

    private static boolean isApp(ItemInfo info) {