feat: 优化代码

pull/97/head
kunfei 5 years ago
parent f79cfba183
commit 94fefb6761
  1. 1
      app/src/main/java/io/legado/app/ui/book/read/config/MoreConfigDialog.kt
  2. 8
      app/src/main/res/xml/pref_config_other.xml
  3. 8
      app/src/main/res/xml/pref_config_read.xml

@ -95,6 +95,7 @@ class MoreConfigDialog : DialogFragment() {
PreferKey.hideStatusBar -> postEvent(EventBus.UP_CONFIG, true)
PreferKey.hideNavigationBar -> postEvent(EventBus.UP_CONFIG, true)
PreferKey.keepLight -> postEvent(PreferKey.keepLight, true)
PreferKey.isChineseConverterEnable -> postEvent(EventBus.UP_CONFIG, true)
}
}

@ -50,12 +50,4 @@
android:title="@string/record_log"
app:iconSpaceReserved="false" />
<io.legado.app.lib.theme.prefs.ATEListPreference
android:defaultValue="0"
android:key="isChineseConverterEnable"
android:entries="@array/chinese_mode"
android:entryValues="@array/chinese_mode_v"
android:title="@string/is_chinese_converter_enable"
app:iconSpaceReserved="false" />
</androidx.preference.PreferenceScreen>

@ -28,6 +28,14 @@
android:key="volumeKeyPage"
app:iconSpaceReserved="false" />
<io.legado.app.ui.widget.prefs.NameListPreference
android:defaultValue="0"
android:key="isChineseConverterEnable"
android:entries="@array/chinese_mode"
android:entryValues="@array/chinese_mode_v"
android:title="@string/is_chinese_converter_enable"
app:iconSpaceReserved="false" />
<io.legado.app.lib.theme.prefs.ATESwitchPreference
android:defaultValue="false"
android:title="@string/click_all_next_page"

Loading…
Cancel
Save