mirror of
https://github.com/gedoor/legado.git
synced 2024-07-19 01:17:25 +08:00
优化
This commit is contained in:
parent
543c3548aa
commit
a71200762b
@ -18,8 +18,6 @@ import splitties.init.appCtx
|
||||
|
||||
class AboutFragment : PreferenceFragmentCompat() {
|
||||
|
||||
private val qqChannel = "https://pd.qq.com/s/8qxylhj2s"
|
||||
|
||||
private val waitDialog by lazy {
|
||||
WaitDialog(requireContext())
|
||||
}
|
||||
@ -46,9 +44,6 @@ class AboutFragment : PreferenceFragmentCompat() {
|
||||
"privacyPolicy" -> showMdFile(getString(R.string.privacy_policy), "privacyPolicy.md")
|
||||
"gzGzh" -> requireContext().sendToClip(getString(R.string.legado_gzh))
|
||||
"crashLog" -> showDialogFragment<CrashLogsDialog>()
|
||||
"qqChannel" -> context?.openUrl(qqChannel)
|
||||
"tg" -> openUrl(R.string.tg_url)
|
||||
"discord" -> openUrl(R.string.discord_url)
|
||||
}
|
||||
return super.onPreferenceTreeClick(preference)
|
||||
}
|
||||
|
@ -5,8 +5,6 @@
|
||||
<string name="email" translatable="false">gekunfei@live.com</string>
|
||||
|
||||
<string name="contributors_url" translatable="false">https://github.com/gedoor/legado/graphs/contributors</string>
|
||||
<string name="tg_url" translatable="false">https://t.me/legado_channels</string>
|
||||
<string name="discord_url" translatable="false">https://discord.gg/qDE52P5xGW</string>
|
||||
|
||||
<string name="http_ip" translatable="false">http://%1$s:%2$d</string>
|
||||
<string name="git_hub" translatable="false">GitHub</string>
|
||||
|
@ -22,39 +22,6 @@
|
||||
app:allowDividerBelow="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<io.legado.app.lib.prefs.PreferenceCategory
|
||||
android:title="@string/contact"
|
||||
app:allowDividerAbove="true"
|
||||
app:allowDividerBelow="false"
|
||||
app:iconSpaceReserved="false"
|
||||
app:layout="@layout/view_preference_category">
|
||||
|
||||
<io.legado.app.lib.prefs.Preference
|
||||
android:key="gzGzh"
|
||||
android:summary="@string/official_account"
|
||||
android:title="@string/follow_official_account"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<io.legado.app.lib.prefs.Preference
|
||||
android:key="qqChannel"
|
||||
android:title="@string/join_qq_channel"
|
||||
android:summary="@string/qq_channel_summary"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<io.legado.app.lib.prefs.Preference
|
||||
android:key="discord"
|
||||
android:summary="@string/discord_url"
|
||||
android:title="Discord"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<io.legado.app.lib.prefs.Preference
|
||||
android:key="tg"
|
||||
android:summary="@string/tg_url"
|
||||
android:title="TG"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
</io.legado.app.lib.prefs.PreferenceCategory>
|
||||
|
||||
<io.legado.app.lib.prefs.PreferenceCategory
|
||||
android:title="@string/other"
|
||||
app:allowDividerAbove="true"
|
||||
|
Loading…
Reference in New Issue
Block a user