|
@@ -53,6 +53,7 @@ import kotlinx.coroutines.Job
|
|
|
import kotlinx.coroutines.delay
|
|
|
import kotlinx.coroutines.isActive
|
|
|
import kotlinx.coroutines.launch
|
|
|
+import kotlin.time.Duration.Companion.seconds
|
|
|
|
|
|
@Composable
|
|
|
fun MangaBottomActionMenu(
|
|
@@ -85,7 +86,7 @@ fun MangaBottomActionMenu(
|
|
|
(0 until 7).forEach { i -> confirm[i] = i == toConfirmIndex }
|
|
|
resetJob?.cancel()
|
|
|
resetJob = scope.launch {
|
|
|
- delay(1000)
|
|
|
+ delay(1.seconds)
|
|
|
if (isActive) confirm[toConfirmIndex] = false
|
|
|
}
|
|
|
}
|
|
@@ -232,7 +233,7 @@ fun LibraryBottomActionMenu(
|
|
|
(0 until 5).forEach { i -> confirm[i] = i == toConfirmIndex }
|
|
|
resetJob?.cancel()
|
|
|
resetJob = scope.launch {
|
|
|
- delay(1000)
|
|
|
+ delay(1.seconds)
|
|
|
if (isActive) confirm[toConfirmIndex] = false
|
|
|
}
|
|
|
}
|