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) {
for (i in 0 until vp.childCount) {
vp.getChildAt(i).context.packageName
if (vp.getChildAt(i).id != NO_ID && NAVIGATION == activity.resources.getResourceEntryName(
vp.getChildAt(i).id
)
if (vp.getChildAt(i).id != NO_ID
&& NAVIGATION == activity.resources.getResourceEntryName(vp.getChildAt(i).id)
) {
return true
}

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

Loading…
Cancel
Save