Merge "Remove APP_SEARCH_IMPROVEMENTS" into sc-dev

This commit is contained in:
Hyunyoung Song 2021-06-04 18:24:11 +00:00 committed by Android (Google) Code Review
commit 9450883e74
3 changed files with 1 additions and 8 deletions

View File

@ -99,8 +99,6 @@ public class LauncherAppState {
}
mOnTerminateCallback.add(() -> mContext.unregisterReceiver(modelChangeReceiver));
// TODO: remove listener on terminate
FeatureFlags.APP_SEARCH_IMPROVEMENTS.addChangeListener(context, mModel::forceReload);
CustomWidgetManager.INSTANCE.get(mContext)
.setWidgetRefreshCallback(mModel::refreshAndBindWidgetsAndShortcuts);

View File

@ -111,10 +111,6 @@ public final class FeatureFlags {
"FOLDER_NAME_MAJORITY_RANKING", true,
"Suggests folder names based on majority based ranking.");
public static final BooleanFlag APP_SEARCH_IMPROVEMENTS = new DeviceFlag(
"APP_SEARCH_IMPROVEMENTS", true,
"Adds localized title and keyword search and ranking");
public static final BooleanFlag ENABLE_PREDICTION_DISMISS = getDebugFlag(
"ENABLE_PREDICTION_DISMISS", true, "Allow option to dimiss apps from predicted list");

View File

@ -336,8 +336,7 @@ public class IconCache extends BaseIconCache {
@Override
protected String getIconSystemState(String packageName) {
return mIconProvider.getSystemStateForPackage(mSystemState, packageName)
+ ",flags_asi:" + FeatureFlags.APP_SEARCH_IMPROVEMENTS.get();
return mIconProvider.getSystemStateForPackage(mSystemState, packageName);
}
/**