From 1684d7a739451ae94e2d55491f9d86d675c3a9dd Mon Sep 17 00:00:00 2001 From: Becky Qiu Date: Tue, 15 Feb 2022 10:14:17 -0800 Subject: [PATCH] [OneSearch] Arm2 - Add feature flags. Added 2 flags to control web suggestion position and whether use fallback app results. Bug: 213953197 Test: no test needed Change-Id: Ia11c8bc9493fa4d61ced6982e7cac538201f1be2 --- src/com/android/launcher3/config/FeatureFlags.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/com/android/launcher3/config/FeatureFlags.java b/src/com/android/launcher3/config/FeatureFlags.java index 993431e904..3458ed1908 100644 --- a/src/com/android/launcher3/config/FeatureFlags.java +++ b/src/com/android/launcher3/config/FeatureFlags.java @@ -96,6 +96,13 @@ public final class FeatureFlags { getDebugFlag("ENABLE_FLOATING_SEARCH_BAR", false, "Keep All Apps search bar at the bottom (but above keyboard if open)"); + public static final BooleanFlag INJECT_WEB_TOP = new DeviceFlag("INJECT_WEB_TOP", false, + "Show web suggestions on top of the search results"); + + public static final BooleanFlag USE_FALLBACK_APP_SEARCH = new DeviceFlag( + "USE_FALLBACK_APP_SEARCH", false, + "Use fallback launcher app search results instead of AiAi app results"); + public static final BooleanFlag COLLECT_SEARCH_HISTORY = new DeviceFlag( "COLLECT_SEARCH_HISTORY", false, "Allow launcher to collect search history for log");