From c3b3ad8b7bafa70c6e429cac6293976a46f72a1a Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sat, 18 Jun 2022 22:17:47 +0200 Subject: [PATCH] add piped section in about page --- .../java/com/github/libretube/Constants.kt | 1 + .../libretube/preferences/AboutFragment.kt | 5 +++++ app/src/main/res/layout/fragment_about.xml | 21 +++++++++++++++++++ app/src/main/res/values/strings.xml | 3 ++- app/src/main/res/values/style.xml | 2 +- 5 files changed, 30 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/libretube/Constants.kt b/app/src/main/java/com/github/libretube/Constants.kt index 521bc3a7c..5c2c8c76d 100644 --- a/app/src/main/java/com/github/libretube/Constants.kt +++ b/app/src/main/java/com/github/libretube/Constants.kt @@ -5,3 +5,4 @@ const val WEBSITE_URL = "https://libre-tube.github.io/" const val AUTHORS_URL = "https://github.com/libre-tube/LibreTube/graphs/contributors" const val DONATE_URL = "https://libre-tube.github.io/#donate" const val CONTRIBUTING_URL = "https://github.com/libre-tube/LibreTube#donate" +const val PIPED_GITHUB_URL = "https://github.com/TeamPiped/Piped" \ No newline at end of file diff --git a/app/src/main/java/com/github/libretube/preferences/AboutFragment.kt b/app/src/main/java/com/github/libretube/preferences/AboutFragment.kt index e04676f48..67ecf54d0 100644 --- a/app/src/main/java/com/github/libretube/preferences/AboutFragment.kt +++ b/app/src/main/java/com/github/libretube/preferences/AboutFragment.kt @@ -15,6 +15,7 @@ import com.github.libretube.AUTHORS_URL import com.github.libretube.BuildConfig import com.github.libretube.CONTRIBUTING_URL import com.github.libretube.DONATE_URL +import com.github.libretube.PIPED_GITHUB_URL import com.github.libretube.R import com.github.libretube.WEBSITE_URL import com.google.android.material.dialog.MaterialAlertDialogBuilder @@ -44,6 +45,10 @@ class AboutFragment : Fragment() { authors.setOnClickListener { openLinkFromHref(AUTHORS_URL) } + val piped = view.findViewById(R.id.piped) + piped.setOnClickListener { + openLinkFromHref(PIPED_GITHUB_URL) + } val donate = view.findViewById(R.id.donate) donate.setOnClickListener { openLinkFromHref(DONATE_URL) diff --git a/app/src/main/res/layout/fragment_about.xml b/app/src/main/res/layout/fragment_about.xml index 63936c4c3..13bd03318 100644 --- a/app/src/main/res/layout/fragment_about.xml +++ b/app/src/main/res/layout/fragment_about.xml @@ -97,6 +97,27 @@ + + + + + + + + Live This comment has no replies. Authors - Get to know everyone. + Get to know everyone who is involved in developing and improving the app. Name The name of the folder downloaded media is stored in. Internal storage @@ -196,4 +196,5 @@ Behavior Quality and player behavior Seek increment + Piped is an open-source alternative web-frontend for YouTube provides the API we use. Without Piped, LibreTube wouldn\'t exist. Huge thanks to their devs! diff --git a/app/src/main/res/values/style.xml b/app/src/main/res/values/style.xml index 521bec8ae..e7b825f5b 100644 --- a/app/src/main/res/values/style.xml +++ b/app/src/main/res/values/style.xml @@ -22,5 +22,5 @@ 28dp - +z \ No newline at end of file