From eb45068df3eb72a4aba668d3194c1c4cc522cd69 Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Sat, 9 Mar 2024 14:06:11 +0800 Subject: [PATCH] Increase `bringCursorIntoView` workaround delay --- .../main/kotlin/com/hippo/ehviewer/ui/screen/SearchBarScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/SearchBarScreen.kt b/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/SearchBarScreen.kt index eeb20d8f1..8b8d5f954 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/SearchBarScreen.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/SearchBarScreen.kt @@ -277,7 +277,7 @@ fun SearchBarScreen( if (active) { val hasText by searchFieldState.textAsFlow().mapIndexed { index, text -> // Workaround for https://github.com/FooIbar/EhViewer/issues/715 - if (index == 0) delay(500) + if (index == 0) delay(700) text.isNotEmpty() }.collectAsState(false) if (hasText) {