Code review

This commit is contained in:
Valere 2020-04-23 21:20:01 +02:00
parent b0d25fa84f
commit 22c3ed6bb9
2 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,7 @@ class SharedSecureStorageViewModel @AssistedInject constructor(
val keyInfoResult = session.sharedSecretStorageService.getDefaultKey()
if (!keyInfoResult.isSuccess()) {
_viewEvents.post(SharedSecureStorageViewEvent.HideModalLoading)
_viewEvents.post(SharedSecureStorageViewEvent.Error("Cannot find ssss key"))
_viewEvents.post(SharedSecureStorageViewEvent.Error(stringProvider.getString(R.string.failed_to_access_secure_storage)))
return@launch
}
val keyInfo = (keyInfoResult as KeyInfoResult.Success).keyInfo

View File

@ -18,6 +18,7 @@
<string name="use_recovery_key">Use Recovery Key</string>
<string name="enter_secret_storage_input_key">Select your Recovery Key, or input it manually by typing it or pasting from your clipboard</string>
<string name="keys_backup_recovery_key_error_decrypt">Backup could not be decrypted with this Recovery Key: please verify that you entered the correct Recovery Key.</string>
<string name="failed_to_access_secure_storage">Failed to access secure storage</string>
<!-- END Strings added by Valere -->