diff --git a/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/GalleryListScreen.kt b/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/GalleryListScreen.kt index 1e0bd749d..7d8d0d2fd 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/GalleryListScreen.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/GalleryListScreen.kt @@ -69,7 +69,6 @@ import androidx.compose.ui.input.nestedscroll.NestedScrollSource import androidx.compose.ui.input.nestedscroll.nestedScroll import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.platform.LocalDensity -import androidx.compose.ui.platform.LocalFocusManager import androidx.compose.ui.platform.LocalLayoutDirection import androidx.compose.ui.platform.LocalView import androidx.compose.ui.res.dimensionResource @@ -200,14 +199,6 @@ fun GalleryListScreen(lub: ListUrlBuilder, navigator: DestinationsNavigator) { } } - // Fix crash when TextField with focus is scaled to 0 - val focusManager = LocalFocusManager.current - LaunchedEffect(showSearchLayout) { - if (!showSearchLayout) { - focusManager.clearFocus() - } - } - val animatedSearchLayout by animateFloatMergePredictiveBackAsState( enable = showSearchLayout, animationSpec = tween(FAB_ANIMATE_TIME * 2), diff --git a/settings.gradle.kts b/settings.gradle.kts index bb3f2dfff..787ed75fd 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -13,7 +13,8 @@ dependencyResolutionManagement { mavenCentral() maven("https://jitpack.io") maven("https://androidx.dev/storage/compose-compiler/repository/") - maven("https://androidx.dev/snapshots/builds/11487711/artifacts/repository") + // Hold until https://issuetracker.google.com/issues/325372937#comment4 is fixed + maven("https://androidx.dev/snapshots/builds/11488154/artifacts/repository") } }