Update compose snapshot, drop outdated workaround
This commit is contained in:
1 parent
81d72edbf0
commit
4fecbe259b
4 files changed
+1
-24
No files matched your search
@@ -271,9 +271,6 @@ dependencies {
|
||||
|
||||
configurations.all {
|
||||
resolutionStrategy {
|
||||
// Workaround IME won't show again once hidden.
|
||||
// Google issue-tracker link?
|
||||
force("androidx.compose.ui:ui-text-android:1.6.0-alpha08")
|
||||
exclude("androidx.navigation", "navigation-compose")
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
-5
@@ -11,11 +11,6 @@
|
||||
public static final ** CREATOR;
|
||||
}
|
||||
|
||||
# https://issuetracker.google.com/issues/307323842
|
||||
-keepclassmembers class androidx.compose.ui.platform.WindowInfoImpl {
|
||||
setWindowFocused(boolean);
|
||||
}
|
||||
|
||||
# Ktor logger
|
||||
-dontwarn org.slf4j.impl.StaticLoggerBinder
|
||||
|
||||
|
||||
@@ -62,7 +62,6 @@ import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.layout.layout
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.platform.LocalView
|
||||
import androidx.compose.ui.platform.LocalWindowInfo
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
@@ -126,20 +125,6 @@ fun SearchBarScreen(
|
||||
val context = LocalContext.current
|
||||
val dialogState = LocalDialogState.current
|
||||
|
||||
// Workaround for BTF2 cursor not showing
|
||||
// We can't use an always focused WindowInfo because callbacks won't be called once
|
||||
// the window regained focus after losing it (e.g. showing a dialog on top of it)
|
||||
// https://issuetracker.google.com/issues/307323842
|
||||
val windowInfo = LocalWindowInfo.current
|
||||
remember {
|
||||
val clazz = Class.forName("androidx.compose.ui.platform.WindowInfoImpl")
|
||||
clazz.cast(windowInfo).let {
|
||||
clazz.getDeclaredMethod("setWindowFocused", Boolean::class.javaPrimitiveType).apply {
|
||||
invoke(it, true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class TagSuggestion(
|
||||
override val hint: String?,
|
||||
override val keyword: String,
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ dependencyResolutionManagement {
|
||||
maven("https://oss.sonatype.org/content/repositories/snapshots")
|
||||
maven("https://jitpack.io")
|
||||
maven("https://androidx.dev/storage/compose-compiler/repository/")
|
||||
maven("https://androidx.dev/snapshots/builds/11206866/artifacts/repository")
|
||||
maven("https://androidx.dev/snapshots/builds/11212115/artifacts/repository")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user