diff --git a/build.gradle b/build.gradle index 9b67b19eb..2fc713fb8 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ buildscript { kotlin_version = '1.9.23' coroutinesVersion = '1.6.4' ok_http_version = '4.9.1' - dashjVersion = '21.1.0' + dashjVersion = '21.1.1-SNAPSHOT' hiltVersion = '2.51' hiltCompilerVersion = '1.2.0' hiltWorkVersion = '1.0.0' diff --git a/wallet/src/de/schildbach/wallet/ui/main/WalletActivityExt.kt b/wallet/src/de/schildbach/wallet/ui/main/WalletActivityExt.kt index 66f572063..5dc290a9e 100644 --- a/wallet/src/de/schildbach/wallet/ui/main/WalletActivityExt.kt +++ b/wallet/src/de/schildbach/wallet/ui/main/WalletActivityExt.kt @@ -58,8 +58,10 @@ import de.schildbach.wallet.WalletBalanceWidgetProvider import de.schildbach.wallet.service.CoinJoinMode import de.schildbach.wallet.ui.more.MoreFragment import de.schildbach.wallet_test.R +import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.delay import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext import org.dash.wallet.common.services.analytics.AnalyticsConstants import org.dash.wallet.common.ui.components.ComposeHostFrameLayout import org.dash.wallet.common.ui.components.Toast @@ -143,7 +145,7 @@ object WalletActivityExt { fun MainActivity.checkTimeSkew(viewModel: MainViewModel, force: Boolean = false) { lifecycleScope.launch { - val (isTimeSkewed, timeSkew) = viewModel.getDeviceTimeSkew(force) + val (isTimeSkewed, timeSkew) = withContext(Dispatchers.IO) { viewModel.getDeviceTimeSkew(force) } val coinJoinOn = viewModel.getCoinJoinMode() != CoinJoinMode.NONE if (isTimeSkewed && (!timeSkewDialogShown || force)) { timeSkewDialogShown = true