diff --git a/app/src/main/java/com/tangem/tap/features/wallet/redux/middlewares/WalletMiddleware.kt b/app/src/main/java/com/tangem/tap/features/wallet/redux/middlewares/WalletMiddleware.kt
index af6ceb3d2d..6cd4f9da3a 100644
--- a/app/src/main/java/com/tangem/tap/features/wallet/redux/middlewares/WalletMiddleware.kt
+++ b/app/src/main/java/com/tangem/tap/features/wallet/redux/middlewares/WalletMiddleware.kt
@@ -6,6 +6,7 @@ import androidx.core.content.ContextCompat
import com.tangem.TangemSdkError
import com.tangem.blockchain.common.*
import com.tangem.common.CompletionResult
+import com.tangem.common.extensions.isZero
import com.tangem.tap.*
import com.tangem.tap.common.analytics.FirebaseAnalyticsHandler
import com.tangem.tap.common.extensions.copyToClipboard
@@ -59,6 +60,13 @@ class WalletMiddleware {
}
}
is WalletAction.LoadWallet.Success -> {
+ val coinAmount = action.wallet.amounts[AmountType.Coin]?.value
+ if (coinAmount != null && !coinAmount.isZero()) {
+ if (walletState?.getWalletData(action.wallet.blockchain.currency) == null) {
+ store.dispatch(WalletAction.MultiWallet.AddBlockchain(action.wallet.blockchain))
+ store.dispatch(WalletAction.LoadWallet.Success(action.wallet))
+ }
+ }
store.dispatch(WalletAction.Warnings.CheckHashesCount.CheckHashesCountOnline)
warningsMiddleware.tryToShowAppRatingWarning(action.wallet)
}
diff --git a/app/src/main/java/com/tangem/tap/features/wallet/redux/reducers/OnWalletLoadedReducer.kt b/app/src/main/java/com/tangem/tap/features/wallet/redux/reducers/OnWalletLoadedReducer.kt
index 59edbdd896..6941106a0c 100644
--- a/app/src/main/java/com/tangem/tap/features/wallet/redux/reducers/OnWalletLoadedReducer.kt
+++ b/app/src/main/java/com/tangem/tap/features/wallet/redux/reducers/OnWalletLoadedReducer.kt
@@ -27,7 +27,7 @@ class OnWalletLoadedReducer {
} else {
val fiatCurrencySymbol = store.state.globalState.appCurrency
val amount = wallet.amounts[AmountType.Coin]?.value
- if (walletState.getWalletData(wallet.blockchain.currency) == null && amount?.isZero() != false) {
+ if (walletState.getWalletData(wallet.blockchain.currency) == null) {
return walletState
}
if (wallet.blockchain != Blockchain.Ethereum) {
diff --git a/app/src/main/res/layout/fragment_wallet.xml b/app/src/main/res/layout/fragment_wallet.xml
index 04557df535..af281426f8 100644
--- a/app/src/main/res/layout/fragment_wallet.xml
+++ b/app/src/main/res/layout/fragment_wallet.xml
@@ -171,6 +171,9 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
+ android:layout_marginTop="30dp"
+ app:layout_constraintTop_toBottomOf="@id/l_address"
+ app:layout_constraintVertical_bias="1"
app:layout_constraintBottom_toBottomOf="parent" />
+ android:layout_height="76dp">
diff --git a/app/src/main/res/layout/layout_wallet_details.xml b/app/src/main/res/layout/layout_wallet_details.xml
index d276934193..f8ac54763e 100644
--- a/app/src/main/res/layout/layout_wallet_details.xml
+++ b/app/src/main/res/layout/layout_wallet_details.xml
@@ -83,7 +83,7 @@
app:layout_constraintEnd_toEndOf="@id/guideline"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/chip_group_address_type"
- app:layout_constraintBottom_toBottomOf="@id/btn_copy"
+ app:layout_constraintBottom_toBottomOf="@id/v_qr_lower_end"
tools:src="@drawable/ic_qr_code_show" />
+
+