From 22c3ed6bb9aecc0503f841c34722a71e6dcdc442 Mon Sep 17 00:00:00 2001 From: Valere Date: Thu, 23 Apr 2020 21:20:01 +0200 Subject: [PATCH] Code review --- .../riotx/features/crypto/quads/SharedSecureStorageViewModel.kt | 2 +- vector/src/main/res/values/strings_riotX.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/riotx/features/crypto/quads/SharedSecureStorageViewModel.kt b/vector/src/main/java/im/vector/riotx/features/crypto/quads/SharedSecureStorageViewModel.kt index af8b03a713..314f187ab9 100644 --- a/vector/src/main/java/im/vector/riotx/features/crypto/quads/SharedSecureStorageViewModel.kt +++ b/vector/src/main/java/im/vector/riotx/features/crypto/quads/SharedSecureStorageViewModel.kt @@ -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 diff --git a/vector/src/main/res/values/strings_riotX.xml b/vector/src/main/res/values/strings_riotX.xml index 7e59eb8f0f..56456aaf5d 100644 --- a/vector/src/main/res/values/strings_riotX.xml +++ b/vector/src/main/res/values/strings_riotX.xml @@ -18,6 +18,7 @@ Use Recovery Key Select your Recovery Key, or input it manually by typing it or pasting from your clipboard Backup could not be decrypted with this Recovery Key: please verify that you entered the correct Recovery Key. + Failed to access secure storage