mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-12 03:58:56 +01:00
Use kotlin.time extensions in some more places
This commit is contained in:
@@ -48,6 +48,7 @@ import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.flow.collectLatest
|
||||
import kotlinx.coroutines.launch
|
||||
import java.util.Date
|
||||
import kotlin.time.Duration.Companion.seconds
|
||||
|
||||
@Composable
|
||||
fun UpdateScreen(
|
||||
@@ -135,7 +136,7 @@ private fun UpdateScreenContent(
|
||||
scope.launch {
|
||||
// Fake refresh status but hide it after a second as it's a long running task
|
||||
isRefreshing = true
|
||||
delay(1000)
|
||||
delay(1.seconds)
|
||||
isRefreshing = false
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user