File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/fragments/list Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,14 +4,11 @@ import android.os.Bundle
44import android.view.LayoutInflater
55import android.view.ViewGroup
66import androidx.compose.material3.Surface
7- import androidx.core.os.bundleOf
87import androidx.fragment.app.Fragment
98import androidx.fragment.compose.content
109import androidx.lifecycle.viewmodel.compose.viewModel
1110import org.schabi.newpipe.ui.components.video.comment.CommentSection
1211import org.schabi.newpipe.ui.theme.AppTheme
13- import org.schabi.newpipe.util.KEY_SERVICE_ID
14- import org.schabi.newpipe.util.KEY_URL
1512
1613class CommentsFragment : Fragment () {
1714 override fun onCreateView (
@@ -25,11 +22,4 @@ class CommentsFragment : Fragment() {
2522 }
2623 }
2724 }
28-
29- companion object {
30- @JvmStatic
31- fun getInstance (serviceId : Int , url : String? ) = CommentsFragment ().apply {
32- arguments = bundleOf(KEY_SERVICE_ID to serviceId, KEY_URL to url)
33- }
34- }
3525}
Original file line number Diff line number Diff line change @@ -4,14 +4,11 @@ import android.os.Bundle
44import android.view.LayoutInflater
55import android.view.ViewGroup
66import androidx.compose.material3.Surface
7- import androidx.core.os.bundleOf
87import androidx.fragment.app.Fragment
98import androidx.fragment.compose.content
109import androidx.lifecycle.viewmodel.compose.viewModel
11- import org.schabi.newpipe.extractor.stream.StreamInfo
1210import org.schabi.newpipe.ui.components.video.RelatedItems
1311import org.schabi.newpipe.ui.theme.AppTheme
14- import org.schabi.newpipe.util.KEY_INFO
1512
1613class RelatedItemsFragment : Fragment () {
1714 override fun onCreateView (
@@ -25,11 +22,4 @@ class RelatedItemsFragment : Fragment() {
2522 }
2623 }
2724 }
28-
29- companion object {
30- @JvmStatic
31- fun getInstance (info : StreamInfo ) = RelatedItemsFragment ().apply {
32- arguments = bundleOf(KEY_INFO to info)
33- }
34- }
3525}
You can’t perform that action at this time.
0 commit comments