@ -56,6 +56,7 @@ class AboutFragment : PreferenceFragmentCompat() {
"disclaimer" -> requireContext().openUrl(disclaimerUrl)
"qq" -> showQqGroups()
"gzGzh" -> requireContext().sendToClip(getString(R.string.legado_gzh))
"tg" -> openUrl(R.string.tg_url)
}
return super.onPreferenceTreeClick(preference)
@ -21,4 +21,5 @@
<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_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>
@ -51,6 +51,12 @@
android:summary="@string/this_github_url"
app:iconSpaceReserved="false" />
<io.legado.app.ui.widget.prefs.Preference
android:key="tg"
android:title="TG"
android:summary="@string/tg_url"
android:key="sourceRuleSummary"
android:title="@string/source_rule_s"