mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-27 06:29:54 +00:00
Show exact alarm megaphone if Signal Backups enabled.
This commit is contained in:
committed by
Michelle Tang
parent
a7da663d4f
commit
2ba08965d2
@@ -586,7 +586,8 @@ public final class Megaphones {
|
||||
}
|
||||
|
||||
private static boolean shouldShowBackupSchedulePermissionMegaphone(@NonNull Context context) {
|
||||
return SignalStore.account().isPrimaryDevice() && Build.VERSION.SDK_INT >= 31 && SignalStore.settings().isBackupEnabled() && !ServiceUtil.getAlarmManager(context).canScheduleExactAlarms();
|
||||
boolean backupsEnabled = SignalStore.settings().isBackupEnabled() || SignalStore.backup().getAreBackupsEnabled();
|
||||
return SignalStore.account().isPrimaryDevice() && Build.VERSION.SDK_INT >= 31 && backupsEnabled && !ServiceUtil.getAlarmManager(context).canScheduleExactAlarms();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user