Code review
This commit is contained in:
parent
b0d25fa84f
commit
22c3ed6bb9
@ -144,7 +144,7 @@ class SharedSecureStorageViewModel @AssistedInject constructor(
|
|||||||
val keyInfoResult = session.sharedSecretStorageService.getDefaultKey()
|
val keyInfoResult = session.sharedSecretStorageService.getDefaultKey()
|
||||||
if (!keyInfoResult.isSuccess()) {
|
if (!keyInfoResult.isSuccess()) {
|
||||||
_viewEvents.post(SharedSecureStorageViewEvent.HideModalLoading)
|
_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
|
return@launch
|
||||||
}
|
}
|
||||||
val keyInfo = (keyInfoResult as KeyInfoResult.Success).keyInfo
|
val keyInfo = (keyInfoResult as KeyInfoResult.Success).keyInfo
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
<string name="use_recovery_key">Use Recovery Key</string>
|
<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="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="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 -->
|
<!-- END Strings added by Valere -->
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user