Fix maxLifecycle in home & search fragments

This commit is contained in:
Niels van Velzen authored and Niels van Velzen committed 2026-10-24 08:03:45 +02:00
1 parent 17931e3a4d
commit de2dced2b8
2 files changed
+3

No files matched your search

@@ -69,6 +69,7 @@ class HomeFragment : Fragment() {
} }
} }
.fillMaxSize(), .fillMaxSize(),
maxLifecycle = Lifecycle.State.RESUMED,
onUpdate = { fragment -> onUpdate = { fragment ->
rowsSupportFragment = fragment rowsSupportFragment = fragment
} }
@@ -28,6 +28,7 @@ import androidx.fragment.app.Fragment
import androidx.fragment.compose.AndroidFragment import androidx.fragment.compose.AndroidFragment
import androidx.fragment.compose.content import androidx.fragment.compose.content
import androidx.leanback.app.RowsSupportFragment import androidx.leanback.app.RowsSupportFragment
import androidx.lifecycle.Lifecycle
import org.jellyfin.androidtv.ui.search.composable.SearchTextInput import org.jellyfin.androidtv.ui.search.composable.SearchTextInput
import org.jellyfin.androidtv.ui.search.composable.SearchVoiceInput import org.jellyfin.androidtv.ui.search.composable.SearchVoiceInput
import org.jellyfin.androidtv.ui.shared.toolbar.MainToolbar import org.jellyfin.androidtv.ui.shared.toolbar.MainToolbar
@@ -130,6 +131,7 @@ class SearchFragment : Fragment() {
} }
.padding(top = 5.dp) .padding(top = 5.dp)
.fillMaxSize(), .fillMaxSize(),
maxLifecycle = Lifecycle.State.RESUMED,
onUpdate = { fragment -> onUpdate = { fragment ->
rowsSupportFragment = fragment rowsSupportFragment = fragment
fragment.adapter = searchFragmentDelegate.rowsAdapter fragment.adapter = searchFragmentDelegate.rowsAdapter