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

Commit 5efa076d authored by Jon Spivack's avatar Jon Spivack
Browse files

Re-enable app long-press menu on Go devices

Deep shortcuts and the home-screen Widgets menu were removed from Go in b/112904271. Subsequently removing the entire app long-press menu, however, may have been unintended behavior. This re-enables that menu, which currently houses the App Info system shortcut.

Bug: 156120551
Test: Manual
Change-Id: Ifa0befe1896315b5ed905271c2cf4805f70c39c0
parent 4ae95beb
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) {