File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/settings/presentation/history_cache Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,10 +5,9 @@ import android.view.LayoutInflater
55import android.view.ViewGroup
66import androidx.compose.foundation.layout.fillMaxSize
77import androidx.compose.ui.Modifier
8- import androidx.compose.ui.platform.ComposeView
9- import androidx.compose.ui.platform.ViewCompositionStrategy
108import androidx.core.os.bundleOf
119import androidx.fragment.app.Fragment
10+ import androidx.fragment.compose.content
1211import org.schabi.newpipe.fragments.list.comments.CommentsFragment
1312import org.schabi.newpipe.ui.theme.AppTheme
1413import org.schabi.newpipe.util.KEY_SERVICE_ID
@@ -19,14 +18,9 @@ class HistoryCacheFragment : Fragment() {
1918 inflater : LayoutInflater ,
2019 container : ViewGroup ? ,
2120 savedInstanceState : Bundle ? ,
22- ) = ComposeView (requireContext()).apply {
23- setViewCompositionStrategy(ViewCompositionStrategy .DisposeOnViewTreeLifecycleDestroyed )
24- setContent {
25- AppTheme {
26- HistoryCacheSettingsScreen (
27- modifier = Modifier .fillMaxSize()
28- )
29- }
21+ ) = content {
22+ AppTheme {
23+ HistoryCacheSettingsScreen (modifier = Modifier .fillMaxSize())
3024 }
3125 }
3226
You can’t perform that action at this time.
0 commit comments