WIP: Get rid of a few weird warnings.

This commit is contained in:
2026-08-30 16:54:51 +09:00
parent 1d5fe4e784
commit a3fa7b21d0
2 changed files with 4 additions and 2 deletions
@@ -38,6 +38,7 @@ import swiss.qpq.gajumobile.security.KeyManager
import swiss.qpq.gajumobile.security.AccountAirlock
import swiss.qpq.gajumobile.security.GajuNative
import swiss.qpq.gajumobile.ui.screens.AccountNamingScreen
import kotlin.time.Duration.Companion.seconds
import swiss.qpq.gajumobile.ui.screens.CreateWalletScreen
import swiss.qpq.gajumobile.ui.screens.DashboardScreen
import swiss.qpq.gajumobile.ui.screens.DeleteConfirmationScreen
@@ -810,7 +811,7 @@ fun GajuRouter(
// 6. Schedule a balance refresh in 3 seconds
scope.launch {
kotlinx.coroutines.delay(3000)
kotlinx.coroutines.delay(3.seconds)
walletRepo.refreshAccount(activeWallet.id, activeAccount.id)
appStateManager.notifyWalletsChanged()
}
@@ -38,6 +38,7 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.ClipEntry
import androidx.compose.ui.platform.LocalClipboard
import androidx.compose.ui.res.painterResource
import kotlin.time.Duration.Companion.seconds
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
@@ -114,7 +115,7 @@ fun DashboardScreen(
// Automatically refresh balance after 1 second of staying on an account
LaunchedEffect(currentAccount?.id) {
currentAccount?.let { account ->
kotlinx.coroutines.delay(1000)
kotlinx.coroutines.delay(1.seconds)
onRefresh(currentWallet.id, account.id)
}
}