BackupState.DISABLED has been removed. Now when the value is UNKNOWN, the app need to invoke EncryptionService.doesBackupExistOnServer() to check if a Backup exists.
This commit is contained in:
+1
-2
@@ -31,6 +31,5 @@ enum class BackupState {
|
||||
RESUMING,
|
||||
ENABLED,
|
||||
DOWNLOADING,
|
||||
DISABLING,
|
||||
DISABLED;
|
||||
DISABLING;
|
||||
}
|
||||
|
||||
+2
@@ -40,6 +40,8 @@ interface EncryptionService {
|
||||
|
||||
suspend fun disableRecovery(): Result<Unit>
|
||||
|
||||
suspend fun doesBackupExistOnServer(): Result<Boolean>
|
||||
|
||||
/**
|
||||
* Note: accept bot recoveryKey and passphrase.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user