pull/32/head
kunfei 5 years ago
parent 6f9d8d7d08
commit fab0d7c76f
  1. 5
      app/src/main/java/io/legado/app/ui/readbook/Help.kt
  2. 3
      app/src/main/java/io/legado/app/ui/readbook/config/BgTextConfigDialog.kt

@ -55,9 +55,8 @@ object Help {
if (vp != null) { if (vp != null) {
for (i in 0 until vp.childCount) { for (i in 0 until vp.childCount) {
vp.getChildAt(i).context.packageName vp.getChildAt(i).context.packageName
if (vp.getChildAt(i).id != NO_ID && NAVIGATION == activity.resources.getResourceEntryName( if (vp.getChildAt(i).id != NO_ID
vp.getChildAt(i).id && NAVIGATION == activity.resources.getResourceEntryName(vp.getChildAt(i).id)
)
) { ) {
return true return true
} }

@ -103,6 +103,9 @@ class BgTextConfigDialog : DialogFragment() {
sw_dark_status_icon.onCheckedChange { buttonView, isChecked -> sw_dark_status_icon.onCheckedChange { buttonView, isChecked ->
if (buttonView?.isPressed == true) { if (buttonView?.isPressed == true) {
setStatusIconDark(isChecked) setStatusIconDark(isChecked)
activity?.let {
Help.upSystemUiVisibility(it)
}
} }
} }
tv_text_color.onClick { tv_text_color.onClick {

Loading…
Cancel
Save