pull/416/head 3.20.100616
gedoor 4 years ago
parent 1ee4bf5570
commit 2bcf8ff29d
  1. 1
      app/src/main/java/io/legado/app/ui/about/AboutFragment.kt
  2. 1
      app/src/main/res/values/pref_key_value.xml
  3. 6
      app/src/main/res/xml/about.xml

@ -56,6 +56,7 @@ class AboutFragment : PreferenceFragmentCompat() {
"disclaimer" -> requireContext().openUrl(disclaimerUrl) "disclaimer" -> requireContext().openUrl(disclaimerUrl)
"qq" -> showQqGroups() "qq" -> showQqGroups()
"gzGzh" -> requireContext().sendToClip(getString(R.string.legado_gzh)) "gzGzh" -> requireContext().sendToClip(getString(R.string.legado_gzh))
"tg" -> openUrl(R.string.tg_url)
} }
return super.onPreferenceTreeClick(preference) return super.onPreferenceTreeClick(preference)
} }

@ -21,4 +21,5 @@
<string name="home_page_url" translatable="false">https://gedoor.github.io/MyBookshelf/</string> <string name="home_page_url" translatable="false">https://gedoor.github.io/MyBookshelf/</string>
<string name="latest_release_url" translatable="false">https://github.com/gedoor/legado/releases/latest</string> <string name="latest_release_url" translatable="false">https://github.com/gedoor/legado/releases/latest</string>
<string name="latest_release_api" translatable="false">https://api.github.com/repos/gedoor/legado/releases/latest</string> <string name="latest_release_api" translatable="false">https://api.github.com/repos/gedoor/legado/releases/latest</string>
<string name="tg_url" translatable="false">https://t.me/joinchat/S_beh0a2BD-g01HCHUZOfQ</string>
</resources> </resources>

@ -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="tg"
android:title="TG"
android:summary="@string/tg_url"
app:iconSpaceReserved="false" />
<io.legado.app.ui.widget.prefs.Preference <io.legado.app.ui.widget.prefs.Preference
android:key="sourceRuleSummary" android:key="sourceRuleSummary"
android:title="@string/source_rule_s" android:title="@string/source_rule_s"

Loading…
Cancel
Save