Ensure BackupState and RecoveryState values are set from the SDK only when the first sync is finished.
This commit is contained in:
parent
b57fddf19c
commit
348da6bec2
5 changed files with 60 additions and 5 deletions
|
|
@ -70,6 +70,7 @@ fun SecureBackupRootView(
|
|||
|
||||
// Disable / Enable backup
|
||||
when (state.backupState) {
|
||||
BackupState.WAITING_FOR_SYNC,
|
||||
BackupState.UNKNOWN -> Unit
|
||||
BackupState.DISABLED -> {
|
||||
PreferenceText(
|
||||
|
|
@ -97,6 +98,7 @@ fun SecureBackupRootView(
|
|||
|
||||
// Setup recovery
|
||||
when (state.recoveryState) {
|
||||
RecoveryState.WAITING_FOR_SYNC -> Unit
|
||||
RecoveryState.UNKNOWN,
|
||||
RecoveryState.DISABLED -> {
|
||||
PreferenceText(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue