about: update links

Update links in the about page to direct to the new wiki pages.
This commit is contained in:
Alexander Capehart 2022-12-28 15:19:57 -07:00
parent 5764c19801
commit 94e1b71d9b
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
3 changed files with 16 additions and 12 deletions

View file

@ -66,8 +66,9 @@ class AboutFragment : ViewBindingFragment<FragmentAboutBinding>() {
binding.aboutVersion.text = BuildConfig.VERSION_NAME
binding.aboutCode.setOnClickListener { openLinkInBrowser(LINK_SOURCE) }
binding.aboutFaq.setOnClickListener { openLinkInBrowser(LINK_FAQ) }
binding.aboutWiki.setOnClickListener { openLinkInBrowser(LINK_WIKI) }
binding.aboutLicenses.setOnClickListener { openLinkInBrowser(LINK_LICENSES) }
binding.aboutAuthor.setOnClickListener { openLinkInBrowser(LINK_AUTHOR) }
// VIEWMODEL SETUP
collectImmediately(musicModel.statistics, ::updateStatistics)
@ -153,10 +154,12 @@ class AboutFragment : ViewBindingFragment<FragmentAboutBinding>() {
companion object {
/** The URL to the source code. */
private const val LINK_SOURCE = "https://github.com/oxygencobalt/Auxio"
/** The URL to the FAQ document. */
private const val LINK_FAQ = "$LINK_SOURCE/blob/master/info/FAQ.md"
/** The URL to the licenses document. */
private const val LINK_LICENSES = "$LINK_SOURCE/blob/master/info/LICENSES.md"
private const val LINK_SOURCE = "https://github.com/OxygenCobalt/Auxio"
/** The URL to the app wiki. */
private const val LINK_WIKI = "$LINK_SOURCE/wiki"
/** The URL to the licenses wiki page. */
private const val LINK_LICENSES = "$LINK_WIKI/Licenses"
/** The URL to the app author. */
private const val LINK_AUTHOR = "https://github.com/OxygenCobalt"
}
}

View file

@ -124,17 +124,17 @@
android:layout_marginTop="@dimen/spacing_mid_medium"
android:text="@string/lbl_code"
app:drawableStartCompat="@drawable/ic_code_24"
app:layout_constraintBottom_toTopOf="@+id/about_faq"
app:layout_constraintBottom_toTopOf="@+id/about_wiki"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/about_version" />
<TextView
android:id="@+id/about_faq"
android:id="@+id/about_wiki"
style="@style/Widget.Auxio.TextView.Icon.Clickable"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/lbl_faq"
android:text="@string/lbl_wiki"
app:drawableStartCompat="@drawable/ic_help_24"
app:layout_constraintBottom_toTopOf="@+id/about_licenses"
app:layout_constraintEnd_toEndOf="parent"
@ -150,10 +150,11 @@
app:drawableStartCompat="@drawable/ic_license_24"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/about_faq" />
app:layout_constraintTop_toBottomOf="@+id/about_wiki" />
<TextView
style="@style/Widget.Auxio.TextView.Icon"
android:id="@+id/about_author"
style="@style/Widget.Auxio.TextView.Icon.Clickable"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/lng_author"

View file

@ -140,7 +140,7 @@
<string name="lbl_about">About</string>
<string name="lbl_version">Version</string>
<string name="lbl_code">Source code</string>
<string name="lbl_faq">FAQ</string>
<string name="lbl_wiki">Wiki</string>
<string name="lbl_licenses">Licenses</string>
<string name="lbl_library_counts">Library statistics</string>