mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Merge "Convert ENABLE_FLOATING_SEARCH_BAR to aconfig." into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
8a281ff7a6
@@ -302,3 +302,10 @@ flag {
|
||||
purpose: PURPOSE_BUGFIX
|
||||
}
|
||||
}
|
||||
|
||||
flag {
|
||||
name: "floating_search_bar"
|
||||
namespace: "launcher"
|
||||
description: "Search bar persists at the bottom of the screen across Launcher states"
|
||||
bug: "346408388"
|
||||
}
|
||||
|
||||
@@ -53,7 +53,6 @@ import androidx.core.content.res.ResourcesCompat;
|
||||
|
||||
import com.android.launcher3.CellLayout.ContainerType;
|
||||
import com.android.launcher3.DevicePaddings.DevicePadding;
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.icons.DotRenderer;
|
||||
import com.android.launcher3.icons.IconNormalizer;
|
||||
import com.android.launcher3.model.data.ItemInfo;
|
||||
@@ -714,7 +713,7 @@ public class DeviceProfile {
|
||||
overviewTaskThumbnailTopMarginPx =
|
||||
enableOverviewIconMenu() ? 0 : overviewTaskIconSizePx + overviewTaskMarginPx;
|
||||
// Don't add margin with floating search bar to minimize risk of overlapping.
|
||||
overviewActionsTopMarginPx = FeatureFlags.ENABLE_FLOATING_SEARCH_BAR.get() ? 0
|
||||
overviewActionsTopMarginPx = Flags.floatingSearchBar() ? 0
|
||||
: res.getDimensionPixelSize(R.dimen.overview_actions_top_margin);
|
||||
overviewPageSpacing = res.getDimensionPixelSize(R.dimen.overview_page_spacing);
|
||||
overviewActionsButtonSpacing = res.getDimensionPixelSize(
|
||||
|
||||
@@ -84,11 +84,6 @@ public final class FeatureFlags {
|
||||
+ "data preparation for loading the home screen");
|
||||
|
||||
// TODO(Block 4): Cleanup flags
|
||||
public static final BooleanFlag ENABLE_FLOATING_SEARCH_BAR =
|
||||
getReleaseFlag(268388460, "ENABLE_FLOATING_SEARCH_BAR", DISABLED,
|
||||
"Allow search bar to persist and animate across states, and attach to"
|
||||
+ " the keyboard from the bottom of the screen");
|
||||
|
||||
public static final BooleanFlag ENABLE_ALL_APPS_FROM_OVERVIEW =
|
||||
getDebugFlag(275132633, "ENABLE_ALL_APPS_FROM_OVERVIEW", DISABLED,
|
||||
"Allow entering All Apps from Overview (e.g. long swipe up from app)");
|
||||
|
||||
Reference in New Issue
Block a user