diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/setup/SetupFragmentExtensions.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/setup/SetupFragmentExtensions.kt index 382c0a9f..a3ea9b2a 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/setup/SetupFragmentExtensions.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/setup/SetupFragmentExtensions.kt @@ -18,8 +18,13 @@ import com.lagradost.cloudstream3.ui.settings.extensions.PluginsViewModel import com.lagradost.cloudstream3.ui.settings.extensions.RepoAdapter import com.lagradost.cloudstream3.utils.Coroutines.main import com.lagradost.cloudstream3.utils.UIHelper.fixPaddingStatusbar -import kotlinx.android.synthetic.main.fragment_extensions.* -import kotlinx.android.synthetic.main.fragment_setup_media.* +import kotlinx.android.synthetic.main.fragment_extensions.blank_repo_screen +import kotlinx.android.synthetic.main.fragment_extensions.list_repositories +import kotlinx.android.synthetic.main.fragment_extensions.repo_recycler_view +import kotlinx.android.synthetic.main.fragment_setup_extensions.* +import kotlinx.android.synthetic.main.fragment_setup_media.next_btt +import kotlinx.android.synthetic.main.fragment_setup_media.prev_btt +import kotlinx.android.synthetic.main.fragment_setup_media.setup_root class SetupFragmentExtensions : Fragment() { @@ -59,6 +64,7 @@ class SetupFragmentExtensions : Fragment() { val hasRepos = repositories.isNotEmpty() repo_recycler_view?.isVisible = hasRepos blank_repo_screen?.isVisible = !hasRepos + view_public_repositories_button?.isVisible = hasRepos if (hasRepos) { repo_recycler_view?.adapter = RepoAdapter(true, {}, { @@ -79,6 +85,11 @@ class SetupFragmentExtensions : Fragment() { context?.fixPaddingStatusbar(setup_root) val isSetup = arguments?.getBoolean(SETUP_EXTENSION_BUNDLE_IS_SETUP) ?: false + view_public_repositories_button?.setOnClickListener { + val isTv = it.context.isTvSettings() + openBrowser(PUBLIC_REPOSITORIES_LIST, isTv, this) + } + with(context) { if (this == null) return setRepositories() diff --git a/app/src/main/res/layout/fragment_setup_extensions.xml b/app/src/main/res/layout/fragment_setup_extensions.xml index 99af96df..3ea3f49a 100644 --- a/app/src/main/res/layout/fragment_setup_extensions.xml +++ b/app/src/main/res/layout/fragment_setup_extensions.xml @@ -68,6 +68,13 @@ android:gravity="bottom|end" android:orientation="horizontal"> + + - + + + - - - + + + + + + + + \ No newline at end of file