feat: 优化

pull/241/head
gedoor 5 years ago
parent 7e8d22b2b7
commit 0d79a57577
  1. 1
      app/src/main/java/io/legado/app/ui/about/AboutFragment.kt
  2. 6
      app/src/main/res/xml/about.xml

@ -47,6 +47,7 @@ class AboutFragment : PreferenceFragmentCompat() {
"update_log" -> showUpdateLog() "update_log" -> showUpdateLog()
"check_update" -> openUrl(R.string.latest_release_url) "check_update" -> openUrl(R.string.latest_release_url)
"mail" -> sendMail() "mail" -> sendMail()
"sourceRuleSummary" -> openUrl(R.string.source_rule_url)
"git" -> openUrl(R.string.this_github_url) "git" -> openUrl(R.string.this_github_url)
"home_page" -> openUrl(R.string.home_page_url) "home_page" -> openUrl(R.string.home_page_url)
"license" -> requireContext().openUrl(licenseUrl) "license" -> requireContext().openUrl(licenseUrl)

@ -51,6 +51,12 @@
android:summary="@string/this_github_url" android:summary="@string/this_github_url"
app:iconSpaceReserved="false" /> app:iconSpaceReserved="false" />
<io.legado.app.ui.widget.prefs.Preference
android:key="sourceRuleSummary"
android:title="@string/source_rule_s"
android:summary="@string/source_rule_url"
app:iconSpaceReserved="false" />
<io.legado.app.ui.widget.prefs.Preference <io.legado.app.ui.widget.prefs.Preference
android:key="home_page" android:key="home_page"
android:title="@string/home_page" android:title="@string/home_page"

Loading…
Cancel
Save