Stub out MoreOptionsSheet and RestoreFromBackupFragment.

This commit is contained in:
Alex Hart
2024-03-21 17:17:05 -03:00
committed by Nicholas Tinsley
parent 7802448b24
commit 5f5a80dcbe
13 changed files with 756 additions and 39 deletions

View File

@@ -126,6 +126,7 @@ public final class FeatureFlags {
private static final String CDSI_LIBSIGNAL_NET = "android.cds.libsignal.2";
private static final String RX_MESSAGE_SEND = "android.rxMessageSend";
private static final String LINKED_DEVICE_LIFESPAN_SECONDS = "android.linkedDeviceLifespanSeconds";
private static final String MESSAGE_BACKUPS = "android.messageBackups";
/**
* We will only store remote values for flags in this set. If you want a flag to be controllable
@@ -208,7 +209,7 @@ public final class FeatureFlags {
);
@VisibleForTesting
static final Set<String> NOT_REMOTE_CAPABLE = SetUtil.newHashSet();
static final Set<String> NOT_REMOTE_CAPABLE = SetUtil.newHashSet(MESSAGE_BACKUPS);
/**
* Values in this map will take precedence over any value. This should only be used for local
@@ -731,6 +732,14 @@ public final class FeatureFlags {
return TimeUnit.SECONDS.toMillis(seconds);
}
/**
* Enable Message Backups UI
* Note: This feature is in active development and is not intended to currently function.
*/
public static boolean messageBackups() {
return getBoolean(MESSAGE_BACKUPS, false);
}
/** Only for rendering debug info. */
public static synchronized @NonNull Map<String, Object> getMemoryValues() {
return new TreeMap<>(REMOTE_VALUES);