feat: 优化代码

pull/103/head
kunfei 5 years ago
parent e2d7fbba99
commit 6129c814ca
  1. 1
      app/src/main/res/values/strings.xml
  2. 13
      app/src/main/res/xml/pref_config_other.xml

@ -608,4 +608,5 @@
<string name="chinese_converter">中文简繁体转换</string> <string name="chinese_converter">中文简繁体转换</string>
<string name="chage_icon_error">图标为矢量图标,Android8.0以前不支持</string> <string name="chage_icon_error">图标为矢量图标,Android8.0以前不支持</string>
<string name="aloud_config">朗读设置</string> <string name="aloud_config">朗读设置</string>
<string name="main_activity">主界面</string>
</resources> </resources>

@ -2,6 +2,10 @@
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"> xmlns:app="http://schemas.android.com/apk/res-auto">
<io.legado.app.lib.theme.prefs.ATEPreferenceCategory
android:title="@string/main_activity"
app:iconSpaceReserved="false">
<io.legado.app.lib.theme.prefs.ATESwitchPreference <io.legado.app.lib.theme.prefs.ATESwitchPreference
android:defaultValue="false" android:defaultValue="false"
android:key="@string/pk_auto_refresh" android:key="@string/pk_auto_refresh"
@ -22,6 +26,12 @@
android:title="@string/show_rss" android:title="@string/show_rss"
app:iconSpaceReserved="false" /> app:iconSpaceReserved="false" />
</io.legado.app.lib.theme.prefs.ATEPreferenceCategory>
<io.legado.app.lib.theme.prefs.ATEPreferenceCategory
android:title="@string/other_setting"
app:iconSpaceReserved="false">
<Preference <Preference
android:key="threadCount" android:key="threadCount"
android:title="@string/threads_num_title" android:title="@string/threads_num_title"
@ -50,4 +60,7 @@
android:title="@string/record_log" android:title="@string/record_log"
app:iconSpaceReserved="false" /> app:iconSpaceReserved="false" />
</io.legado.app.lib.theme.prefs.ATEPreferenceCategory>
</androidx.preference.PreferenceScreen> </androidx.preference.PreferenceScreen>
Loading…
Cancel
Save