Update Compose

Fixes #7004
This commit is contained in:
arkon
2022-05-11 22:29:28 -04:00
parent c7707dc50e
commit 393fc14630
4 changed files with 17 additions and 18 deletions

View File

@@ -30,7 +30,7 @@ abstract class ComposeController<P : Presenter<*>>(bundle: Bundle? = null) :
consumeWindowInsets = false
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed)
setContent {
val nestedScrollInterop = rememberNestedScrollInteropConnection(binding.root)
val nestedScrollInterop = rememberNestedScrollInteropConnection()
TachiyomiTheme {
ComposeContent(nestedScrollInterop)
}
@@ -56,7 +56,7 @@ abstract class BasicComposeController :
consumeWindowInsets = false
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed)
setContent {
val nestedScrollInterop = rememberNestedScrollInteropConnection(binding.root)
val nestedScrollInterop = rememberNestedScrollInteropConnection()
TachiyomiTheme {
ComposeContent(nestedScrollInterop)
}
@@ -79,7 +79,7 @@ abstract class SearchableComposeController<P : BasePresenter<*>>(bundle: Bundle?
consumeWindowInsets = false
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed)
setContent {
val nestedScrollInterop = rememberNestedScrollInteropConnection(binding.root)
val nestedScrollInterop = rememberNestedScrollInteropConnection()
TachiyomiTheme {
ComposeContent(nestedScrollInterop)
}