Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Sep 20, 2023
1 parent 543c354 commit a712007
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 40 deletions.
5 changes: 0 additions & 5 deletions app/src/main/java/io/legado/app/ui/about/AboutFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand All @@ -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)
}
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values/non_translat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
<string name="email" translatable="false">[email protected]</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>
Expand Down
33 changes: 0 additions & 33 deletions app/src/main/res/xml/about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a712007

Please sign in to comment.