mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Revert "Introducing new variable to enable/disable shortcuts."
Revert "Introducing new variable to enable/disable shortcuts." Revert submission 19632697-cherrypick-GO-DISABLE-SHORTCUTS-tyyzrpy9oe Reason for revert: Reverting changes for the recent feature built by me. This CL was a part of the feature. Please take a call if we should revert it or not. Reverted Changes: Ib373b042f:Introducing new variable to enable/disable shortcu... I4274cb468:Introducing new variable to enable/disable shortcu... Change-Id: I81f338be71185cb008e81b020c5b3a7b01b64c58
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_SHORTCUTS;
|
||||
import static com.android.launcher3.model.WidgetsModel.GO_DISABLE_WIDGETS;
|
||||
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_SHORTCUTS) {
|
||||
if (GO_DISABLE_WIDGETS) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user