diff --git a/app/src/main/java/com/tangem/tap/features/details/ui/DetailsFragment.kt b/app/src/main/java/com/tangem/tap/features/details/ui/DetailsFragment.kt index 74d3f40fd9..acb76789ba 100644 --- a/app/src/main/java/com/tangem/tap/features/details/ui/DetailsFragment.kt +++ b/app/src/main/java/com/tangem/tap/features/details/ui/DetailsFragment.kt @@ -73,7 +73,10 @@ class DetailsFragment : Fragment(R.layout.fragment_details), StoreSubscriber { action -> when (action) { - is TokensAction.LoadCurrencies -> handleLoadCurrencies(action) + is TokensAction.LoadCurrencies -> handleLoadCurrencies() is TokensAction.SaveChanges -> handleSaveChanges(action) } next(action) @@ -40,7 +40,7 @@ class TokensMiddleware { } } - private fun handleLoadCurrencies(action: TokensAction.LoadCurrencies) { + private fun handleLoadCurrencies() { val scanResponse = store.state.globalState.scanResponse ?: return val isTestcard = scanResponse.card.isTestCard @@ -48,7 +48,7 @@ class TokensMiddleware { val blockchains = currenciesRepository.getBlockchains( cardFirmware = scanResponse.card.firmwareVersion, isTestNet = isTestcard - ) + ).sortedBy { it.fullName } val currencies = CurrencyListItem.createListOfCurrencies(blockchains, tokens).toMutableList() store.dispatch(TokensAction.LoadCurrencies.Success(currencies)) diff --git a/app/src/main/res/values/strings_untranslated.xml b/app/src/main/res/values/strings_untranslated.xml index ce001133db..32f666e20c 100644 --- a/app/src/main/res/values/strings_untranslated.xml +++ b/app/src/main/res/values/strings_untranslated.xml @@ -27,7 +27,7 @@ Preparing card Creating wallet The wallet creation procedure consists of three steps. You must complete it to the end, otherwise you will have to start from the beginning. - Tap the card #%s + Scan the card #%s You have already started the process of recreating twin wallet. If you interrupt it, you won\'t be able to use your twin cards until you start it again and complete recreating the wallet. You\'ve tapped the same card. To create twin wallet you need to tap a second twin card.