Replace internal setting for CIV2 TextOnly with a FeatureFlag.

This commit is contained in:
Alex Hart
2023-08-31 16:50:05 -03:00
committed by Nicholas Tinsley
parent 305d7485c1
commit 1f2bfe8245
9 changed files with 20 additions and 33 deletions

View File

@@ -114,6 +114,7 @@ public final class FeatureFlags {
public static final String PROMPT_BATTERY_SAVER = "android.promptBatterySaver";
public static final String USERNAMES = "android.usernames";
public static final String INSTANT_VIDEO_PLAYBACK = "android.instantVideoPlayback";
private static final String CONVERSATION_ITEM_V2_TEXT = "android.conversationItemV2.text";
/**
* We will only store remote values for flags in this set. If you want a flag to be controllable
@@ -179,7 +180,8 @@ public final class FeatureFlags {
PROMPT_FOR_NOTIFICATION_CONFIG,
PROMPT_BATTERY_SAVER,
USERNAMES,
INSTANT_VIDEO_PLAYBACK
INSTANT_VIDEO_PLAYBACK,
CONVERSATION_ITEM_V2_TEXT
);
@VisibleForTesting
@@ -639,6 +641,15 @@ public final class FeatureFlags {
return getBoolean(INSTANT_VIDEO_PLAYBACK, false);
}
/**
* Note: this setting is currently
*
* @return Whether to use TextOnly V2 Conversation Items.
*/
public static boolean useTextOnlyConversationItemV2() {
return getBoolean(CONVERSATION_ITEM_V2_TEXT, false);
}
public static String promptForDelayedNotificationLogs() {
return getString(PROMPT_FOR_NOTIFICATION_LOGS, "*");
}