Merge "Clean up some old (pre-aconfig) flags." into main
This commit is contained in:
commit
7ca8954796
4 files changed
-33
No files matched your search
@@ -18,7 +18,6 @@ package com.android.launcher3.allapps;
|
||||
import static com.android.launcher3.Flags.enableExpandingPauseWorkButton;
|
||||
import static com.android.launcher3.allapps.ActivityAllAppsContainerView.AdapterHolder.MAIN;
|
||||
import static com.android.launcher3.allapps.ActivityAllAppsContainerView.AdapterHolder.SEARCH;
|
||||
import static com.android.launcher3.allapps.ActivityAllAppsContainerView.AdapterHolder.WORK;
|
||||
import static com.android.launcher3.allapps.BaseAllAppsAdapter.VIEW_TYPE_PRIVATE_SPACE_HEADER;
|
||||
import static com.android.launcher3.allapps.BaseAllAppsAdapter.VIEW_TYPE_WORK_DISABLED_CARD;
|
||||
import static com.android.launcher3.allapps.BaseAllAppsAdapter.VIEW_TYPE_WORK_EDU_CARD;
|
||||
@@ -587,12 +586,6 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
return;
|
||||
}
|
||||
|
||||
if (!FeatureFlags.ENABLE_SEARCH_RESULT_BACKGROUND_DRAWABLES.get()) {
|
||||
RecyclerView.ItemDecoration decoration = getMainAdapterProvider().getDecorator();
|
||||
getSearchRecyclerView().removeItemDecoration(decoration);
|
||||
getSearchRecyclerView().addItemDecoration(decoration);
|
||||
}
|
||||
|
||||
// replaceAppsRVcontainer() needs to use both mUsingTabs value to remove the old view AND
|
||||
// showTabs value to create new view. Hence the mUsingTabs new value assignment MUST happen
|
||||
// after this call.
|
||||
|
||||
@@ -19,8 +19,6 @@ import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.android.launcher3.BubbleTextView;
|
||||
import com.android.launcher3.allapps.AllAppsGridAdapter;
|
||||
import com.android.launcher3.model.data.ItemInfo;
|
||||
@@ -30,13 +28,10 @@ import com.android.launcher3.views.ActivityContext;
|
||||
* Provides views for local search results.
|
||||
*/
|
||||
public class DefaultSearchAdapterProvider extends SearchAdapterProvider<ActivityContext> {
|
||||
|
||||
private final RecyclerView.ItemDecoration mDecoration;
|
||||
private View mHighlightedView;
|
||||
|
||||
public DefaultSearchAdapterProvider(ActivityContext launcher) {
|
||||
super(launcher);
|
||||
mDecoration = new RecyclerView.ItemDecoration() { };
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -73,11 +68,6 @@ public class DefaultSearchAdapterProvider extends SearchAdapterProvider<Activity
|
||||
return mHighlightedView;
|
||||
}
|
||||
|
||||
@Override
|
||||
public RecyclerView.ItemDecoration getDecorator() {
|
||||
return mDecoration;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearHighlightedItem() {
|
||||
mHighlightedView = null;
|
||||
|
||||
@@ -20,8 +20,6 @@ import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.android.launcher3.allapps.AllAppsGridAdapter;
|
||||
import com.android.launcher3.views.ActivityContext;
|
||||
|
||||
@@ -49,11 +47,6 @@ public abstract class SearchAdapterProvider<T extends ActivityContext> {
|
||||
*/
|
||||
public abstract View getHighlightedItem();
|
||||
|
||||
/**
|
||||
* Returns the item decorator.
|
||||
*/
|
||||
public abstract RecyclerView.ItemDecoration getDecorator();
|
||||
|
||||
/**
|
||||
* Clear the highlighted view.
|
||||
*/
|
||||
|
||||
@@ -61,15 +61,6 @@ public final class FeatureFlags {
|
||||
* and set a default value for the flag. This will be the default value on Debug builds.
|
||||
* <p>
|
||||
*/
|
||||
// TODO(Block 1): Clean up flags
|
||||
public static final BooleanFlag ENABLE_SEARCH_RESULT_BACKGROUND_DRAWABLES = getReleaseFlag(
|
||||
270394041, "ENABLE_SEARCH_RESULT_BACKGROUND_DRAWABLES", ENABLED,
|
||||
"Enable option to replace decorator-based search result backgrounds with drawables");
|
||||
|
||||
public static final BooleanFlag ENABLE_SEARCH_RESULT_LAUNCH_TRANSITION = getReleaseFlag(
|
||||
270394392, "ENABLE_SEARCH_RESULT_LAUNCH_TRANSITION", ENABLED,
|
||||
"Enable option to launch search results using the new view container transitions");
|
||||
|
||||
// TODO(Block 2): Clean up flags
|
||||
public static final BooleanFlag ENABLE_MULTI_DISPLAY_PARTIAL_DEPTH = getDebugFlag(270395073,
|
||||
"ENABLE_MULTI_DISPLAY_PARTIAL_DEPTH", DISABLED,
|
||||
|
||||
Reference in new issue
Block a user