mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 16:19:33 +01:00
Add setting for requesting user account data.
This commit is contained in:
@@ -108,6 +108,7 @@ public final class FeatureFlags {
|
||||
private static final String ANY_ADDRESS_PORTS_KILL_SWITCH = "android.calling.fieldTrial.anyAddressPortsKillSwitch";
|
||||
private static final String CALLS_TAB = "android.calls.tab";
|
||||
private static final String TEXT_FORMATTING_SPOILER_SEND = "android.textFormatting.spoilerSend";
|
||||
private static final String EXPORT_ACCOUNT_DATA = "android.exportAccountData";
|
||||
|
||||
/**
|
||||
* We will only store remote values for flags in this set. If you want a flag to be controllable
|
||||
@@ -166,7 +167,8 @@ public final class FeatureFlags {
|
||||
TEXT_FORMATTING,
|
||||
ANY_ADDRESS_PORTS_KILL_SWITCH,
|
||||
CALLS_TAB,
|
||||
TEXT_FORMATTING_SPOILER_SEND
|
||||
TEXT_FORMATTING_SPOILER_SEND,
|
||||
EXPORT_ACCOUNT_DATA
|
||||
);
|
||||
|
||||
@VisibleForTesting
|
||||
@@ -603,6 +605,13 @@ public final class FeatureFlags {
|
||||
return getBoolean(CALLS_TAB, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether or not the ability to export account data is enabled
|
||||
*/
|
||||
public static boolean exportAccountData() {
|
||||
return getBoolean(EXPORT_ACCOUNT_DATA, false);
|
||||
}
|
||||
|
||||
/** Only for rendering debug info. */
|
||||
public static synchronized @NonNull Map<String, Object> getMemoryValues() {
|
||||
return new TreeMap<>(REMOTE_VALUES);
|
||||
|
||||
Reference in New Issue
Block a user