From 170911d823901b87211f35f20531495171da455f Mon Sep 17 00:00:00 2001 From: Grace Date: Fri, 22 Jul 2022 01:13:46 +0000 Subject: [PATCH] Create Flag for Region Sampling in Smartspace This change adds a feature flag to control region sampling for the homescreen smartspace. The flag helps developers toggle the feature on and off during debugging. Bug: 202758428 Test: N/A Change-Id: I99e795408f5550b4a535ef181744f029e09c4436 --- 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 4fd13b2b39..2fbe105551 100644 --- a/src/com/android/launcher3/config/FeatureFlags.java +++ b/src/com/android/launcher3/config/FeatureFlags.java @@ -169,6 +169,13 @@ public final class FeatureFlags { "ENABLE_SMARTSPACE_DISMISS", true, "Adds a menu option to dismiss the current Enhanced Smartspace card."); + /** + * Enables region sampling for text color: Needs system health assessment before turning on + */ + public static final BooleanFlag ENABLE_REGION_SAMPLING = getDebugFlag( + "ENABLE_REGION_SAMPLING", false, + "Enable region sampling to determine color of text on screen."); + public static final BooleanFlag ALWAYS_USE_HARDWARE_OPTIMIZATION_FOR_FOLDER_ANIMATIONS = getDebugFlag( "ALWAYS_USE_HARDWARE_OPTIMIZATION_FOR_FOLDER_ANIMATIONS", false,