mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 10:18:20 +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:
@@ -17,7 +17,7 @@ package com.android.launcher3.model;
|
||||
|
||||
import static android.content.pm.LauncherApps.ShortcutQuery.FLAG_GET_KEY_FIELDS_ONLY;
|
||||
|
||||
import static com.android.launcher3.model.WidgetsModel.GO_DISABLE_WIDGETS;
|
||||
import static com.android.launcher3.model.WidgetsModel.GO_DISABLE_SHORTCUTS;
|
||||
import static com.android.launcher3.shortcuts.ShortcutRequest.PINNED;
|
||||
|
||||
import static java.util.stream.Collectors.groupingBy;
|
||||
@@ -286,7 +286,7 @@ public class BgDataModel {
|
||||
* shortcuts and unpinning any extra shortcuts.
|
||||
*/
|
||||
public synchronized void updateShortcutPinnedState(Context context, UserHandle user) {
|
||||
if (GO_DISABLE_WIDGETS) {
|
||||
if (GO_DISABLE_SHORTCUTS) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user