Suppress megaphone for upgrade path.

This commit is contained in:
Alex Hart
2026-03-26 09:41:47 -03:00
parent 068eaff801
commit e529fbd1bc
2 changed files with 12 additions and 1 deletions

View File

@@ -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) {

View File

@@ -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
}