mirror of
https://github.com/gedoor/legado.git
synced 2024-07-17 00:58:29 +08:00
优化
This commit is contained in:
parent
e90ce819f7
commit
6fa331c928
7
app/src/google/res/values/non_translat.xml
Normal file
7
app/src/google/res/values/non_translat.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
|
||||
|
||||
<string name="this_github_url" translatable="false">无</string>
|
||||
<string name="home_page_url" translatable="false">无</string>
|
||||
|
||||
</resources>
|
@ -9,10 +9,12 @@ import androidx.lifecycle.lifecycleScope
|
||||
import androidx.preference.Preference
|
||||
import androidx.preference.PreferenceFragmentCompat
|
||||
import io.legado.app.R
|
||||
import io.legado.app.constant.AppConst
|
||||
import io.legado.app.constant.AppConst.appInfo
|
||||
import io.legado.app.help.AppUpdate
|
||||
import io.legado.app.lib.dialogs.alert
|
||||
import io.legado.app.lib.dialogs.selector
|
||||
import io.legado.app.lib.prefs.PreferenceCategory
|
||||
import io.legado.app.ui.widget.dialog.TextDialog
|
||||
import io.legado.app.ui.widget.dialog.WaitDialog
|
||||
import io.legado.app.utils.*
|
||||
@ -44,6 +46,12 @@ class AboutFragment : PreferenceFragmentCompat() {
|
||||
addPreferencesFromResource(R.xml.about)
|
||||
findPreference<Preference>("update_log")?.summary =
|
||||
"${getString(R.string.version)} ${appInfo.versionName}"
|
||||
if (AppConst.isPlayChannel) {
|
||||
findPreference<PreferenceCategory>("lx")?.run {
|
||||
removePreferenceRecursively("home_page")
|
||||
removePreferenceRecursively("git")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
|
@ -16,6 +16,7 @@
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<io.legado.app.lib.prefs.PreferenceCategory
|
||||
android:key="lx"
|
||||
android:title="@string/contact"
|
||||
app:allowDividerAbove="true"
|
||||
app:allowDividerBelow="false"
|
||||
|
Loading…
Reference in New Issue
Block a user