From 182ed5c2be8b21c15ca963c82481dc7ffc04554a Mon Sep 17 00:00:00 2001 From: septs Date: Sun, 8 Dec 2024 21:42:02 +0800 Subject: [PATCH] chore: simplify source code intent --- .../main/java/im/angry/openeuicc/ui/SettingsFragment.kt | 4 ---- app-common/src/main/res/xml/pref_settings.xml | 9 +++++++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app-common/src/main/java/im/angry/openeuicc/ui/SettingsFragment.kt b/app-common/src/main/java/im/angry/openeuicc/ui/SettingsFragment.kt index f10f134..6ad74c4 100644 --- a/app-common/src/main/java/im/angry/openeuicc/ui/SettingsFragment.kt +++ b/app-common/src/main/java/im/angry/openeuicc/ui/SettingsFragment.kt @@ -47,10 +47,6 @@ class SettingsFragment: PreferenceFragmentCompat() { setOnPreferenceClickListener(::onAppVersionClicked) } - findPreference("pref_info_source_code")?.apply { - intent = Intent(Intent.ACTION_VIEW, Uri.parse(summary.toString())) - } - findPreference("pref_language")?.apply { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) return@apply isVisible = true diff --git a/app-common/src/main/res/xml/pref_settings.xml b/app-common/src/main/res/xml/pref_settings.xml index 107e0b4..52815b9 100644 --- a/app-common/src/main/res/xml/pref_settings.xml +++ b/app-common/src/main/res/xml/pref_settings.xml @@ -1,5 +1,6 @@ - + + app:key="pref_info_source_code"> + + \ No newline at end of file -- 2.45.3