From 16ab60bd49b63ff751bb5cad105c320b56b7c2ef Mon Sep 17 00:00:00 2001 From: chyngyz Date: Thu, 14 Dec 2023 13:02:33 +0600 Subject: [PATCH] Don't show syncing until text for sync mode `Blockchair` --- .../bankwallet/core/adapters/BitcoinBaseAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/core/adapters/BitcoinBaseAdapter.kt b/app/src/main/java/io/horizontalsystems/bankwallet/core/adapters/BitcoinBaseAdapter.kt index 4e9a6c757f9..f3db9df84af 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/core/adapters/BitcoinBaseAdapter.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/core/adapters/BitcoinBaseAdapter.kt @@ -203,7 +203,7 @@ abstract class BitcoinBaseAdapter( } is BitcoinCore.KitState.Syncing -> { val progress = (kitState.progress * 100).toInt() - val lastBlockDate = kit.lastBlockInfo?.timestamp?.let { Date(it * 1000) } + val lastBlockDate = if (syncMode is BitcoinCore.SyncMode.Blockchair) null else kit.lastBlockInfo?.timestamp?.let { Date(it * 1000) } AdapterState.Syncing(progress, lastBlockDate) }