Add remote config for GIF keyboard page.

This commit is contained in:
Nicholas Tinsley
2024-01-30 16:53:42 -05:00
parent f97a034c34
commit a60419a442
4 changed files with 20 additions and 2 deletions

View File

@@ -119,6 +119,7 @@ public final class FeatureFlags {
private static final String NOTIFICATION_THUMBNAIL_BLOCKLIST = "android.notificationThumbnailProductBlocklist";
private static final String CALLING_RAISE_HAND = "android.calling.raiseHand";
private static final String USE_ACTIVE_CALL_MANAGER = "android.calling.useActiveCallManager";
private static final String GIF_SEARCH = "global.gifSearch";
/**
* We will only store remote values for flags in this set. If you want a flag to be controllable
@@ -190,7 +191,8 @@ public final class FeatureFlags {
NOTIFICATION_THUMBNAIL_BLOCKLIST,
CALLING_RAISE_HAND,
PHONE_NUMBER_PRIVACY,
USE_ACTIVE_CALL_MANAGER
USE_ACTIVE_CALL_MANAGER,
GIF_SEARCH
);
@VisibleForTesting
@@ -686,6 +688,11 @@ public final class FeatureFlags {
return getBoolean(USE_ACTIVE_CALL_MANAGER, false);
}
/** Whether the in-app GIF search is available for use. */
public static boolean gifSearchAvailable() {
return getBoolean(GIF_SEARCH, true);
}
/** Only for rendering debug info. */
public static synchronized @NonNull Map<String, Object> getMemoryValues() {
return new TreeMap<>(REMOTE_VALUES);