mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-02 08:23:00 +01:00
Suppress megaphone for upgrade path.
This commit is contained in:
@@ -613,7 +613,7 @@ public final class Megaphones {
|
||||
}
|
||||
|
||||
private static boolean shouldShowUseNewOnDeviceBackupsMegaphone() {
|
||||
return Environment.Backups.isNewFormatSupportedForLocalBackup() && SignalStore.settings().isBackupEnabled();
|
||||
return Environment.Backups.isNewFormatSupportedForLocalBackup() && SignalStore.settings().isBackupEnabled() && (RemoteConfig.upgradeBackupsMegaphone() || RemoteConfig.internalUser());
|
||||
}
|
||||
|
||||
private static boolean shouldShowGrantFullScreenIntentPermission(@NonNull Context context) {
|
||||
|
||||
@@ -1337,5 +1337,16 @@ object RemoteConfig {
|
||||
hotSwappable = false
|
||||
)
|
||||
|
||||
/**
|
||||
* Whether the backups upgrade megaphone can be displayed
|
||||
*/
|
||||
@JvmStatic
|
||||
@get:JvmName("upgradeBackupsMegaphone")
|
||||
val upgradeBackupsMegaphone: Boolean by remoteBoolean(
|
||||
key = "android.upgradeBackupsMegaphone",
|
||||
defaultValue = false,
|
||||
hotSwappable = false
|
||||
)
|
||||
|
||||
// endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user