mirror of
https://github.com/jellyfin/jellyfin-androidtv.git
synced 2026-10-26 16:45:23 +00:00
Fix maxLifecycle in home & search fragments
This commit is contained in:
1 parent
17931e3a4d
commit
de2dced2b8
2 files changed
+3
No files matched your search
@@ -69,6 +69,7 @@ class HomeFragment : Fragment() {
|
||||
}
|
||||
}
|
||||
.fillMaxSize(),
|
||||
maxLifecycle = Lifecycle.State.RESUMED,
|
||||
onUpdate = { fragment ->
|
||||
rowsSupportFragment = fragment
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ import androidx.fragment.app.Fragment
|
||||
import androidx.fragment.compose.AndroidFragment
|
||||
import androidx.fragment.compose.content
|
||||
import androidx.leanback.app.RowsSupportFragment
|
||||
import androidx.lifecycle.Lifecycle
|
||||
import org.jellyfin.androidtv.ui.search.composable.SearchTextInput
|
||||
import org.jellyfin.androidtv.ui.search.composable.SearchVoiceInput
|
||||
import org.jellyfin.androidtv.ui.shared.toolbar.MainToolbar
|
||||
@@ -130,6 +131,7 @@ class SearchFragment : Fragment() {
|
||||
}
|
||||
.padding(top = 5.dp)
|
||||
.fillMaxSize(),
|
||||
maxLifecycle = Lifecycle.State.RESUMED,
|
||||
onUpdate = { fragment ->
|
||||
rowsSupportFragment = fragment
|
||||
fragment.adapter = searchFragmentDelegate.rowsAdapter
|
||||
|
||||
Reference in new issue
Block a user