This commit is contained in:
kunfei
2023-03-14 17:45:19 +08:00
parent d86c57ff00
commit 3a82ac43cb
2 changed files with 5 additions and 2 deletions

View File

@@ -3,5 +3,6 @@
<string name="this_github_url" translatable="false"></string>
<string name="home_page_url" translatable="false"></string>
<string name="contributors_url" translatable="false"></string>
</resources>

View File

@@ -61,8 +61,10 @@ class AboutFragment : PreferenceFragmentCompat() {
override fun onPreferenceTreeClick(preference: Preference): Boolean {
when (preference.key) {
"contributors" -> openUrl(R.string.contributors_url)
"update_log" -> showMdFile(getString(R.string.update_log),"updateLog.md")
"contributors" -> if (!AppConst.isPlayChannel) {
openUrl(R.string.contributors_url)
}
"update_log" -> showMdFile(getString(R.string.update_log), "updateLog.md")
"check_update" -> checkUpdate()
"mail" -> requireContext().sendMail(getString(R.string.email))
"sourceRuleSummary" -> openUrl(R.string.source_rule_url)