优化代码

pull/540/head
gedoor 4 years ago
parent b81ef8a0c2
commit f0c43c1a66
  1. 4
      app/src/main/java/io/legado/app/help/AppConfig.kt
  2. 2
      app/src/main/res/xml/pref_config_theme.xml

@ -74,10 +74,10 @@ object AppConfig : SharedPreferences.OnSharedPreferenceChangeListener {
}
val isTransparentStatusBar: Boolean
get() = context.getPrefBoolean(PreferKey.transparentStatusBar)
get() = context.getPrefBoolean(PreferKey.transparentStatusBar, true)
val immNavigationBar: Boolean
get() = context.getPrefBoolean(PreferKey.immNavigationBar)
get() = context.getPrefBoolean(PreferKey.immNavigationBar, true)
val screenDirection: String?
get() = context.getPrefString(PreferKey.screenDirection)

@ -20,7 +20,7 @@
app:iconSpaceReserved="false" />
<io.legado.app.ui.widget.prefs.SwitchPreference
android:defaultValue="false"
android:defaultValue="true"
android:key="immNavigationBar"
android:summary="@string/imm_navigation_bar_s"
android:title="@string/imm_navigation_bar"

Loading…
Cancel
Save