mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Introducing new variable to enable/disable shortcuts.
Widgets and shortcuts are two different entities but they are controlled by same variable GO_DISABLE_WIDGETS. In this CL I have introduced a new variable GO_DISABLE_SHORTCUTS to enable/disable widgets. Test: Tested manually on device. Bug: 236268654 Change-Id: Ib373b042fbfd0493e6345ef10e5631dbfd96b8c3
This commit is contained in:
@@ -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) && !WidgetsModel.GO_DISABLE_WIDGETS;
|
||||
return isActive(info) && isApp(info) && !WidgetsModel.GO_DISABLE_SHORTCUTS;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user