mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Merge "Add smartspace removal option as a toggle" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
0bd2c4ea75
@@ -19,6 +19,7 @@ package com.android.launcher3.model;
|
||||
import static com.android.launcher3.BuildConfig.WIDGET_ON_FIRST_SCREEN;
|
||||
import static com.android.launcher3.LauncherPrefs.SHOULD_SHOW_SMARTSPACE;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME;
|
||||
import static com.android.launcher3.config.FeatureFlags.ENABLE_SMARTSPACE_REMOVAL;
|
||||
import static com.android.launcher3.config.FeatureFlags.SMARTSPACE_AS_A_WIDGET;
|
||||
import static com.android.launcher3.model.BgDataModel.Callbacks.FLAG_HAS_SHORTCUT_PERMISSION;
|
||||
import static com.android.launcher3.model.BgDataModel.Callbacks.FLAG_QUIET_MODE_CHANGE_PERMISSION;
|
||||
@@ -119,6 +120,7 @@ import java.util.concurrent.CancellationException;
|
||||
*/
|
||||
public class LoaderTask implements Runnable {
|
||||
private static final String TAG = "LoaderTask";
|
||||
public static final String SMARTSPACE_ON_HOME_SCREEN = "pref_smartspace_home_screen";
|
||||
|
||||
private static final boolean DEBUG = true;
|
||||
|
||||
@@ -368,6 +370,9 @@ public class LoaderTask implements Runnable {
|
||||
mModelDelegate.markActive();
|
||||
logASplit("workspaceDelegateItems");
|
||||
}
|
||||
mBgDataModel.isFirstPagePinnedItemEnabled = FeatureFlags.QSB_ON_FIRST_SCREEN
|
||||
&& (!ENABLE_SMARTSPACE_REMOVAL.get() || LauncherPrefs.getPrefs(
|
||||
mApp.getContext()).getBoolean(SMARTSPACE_ON_HOME_SCREEN, true));
|
||||
}
|
||||
|
||||
private void loadWorkspaceImpl(
|
||||
|
||||
Reference in New Issue
Block a user