pull/457/head
gedoor 4 years ago
parent 587b763675
commit 669e6f599f
  1. 3
      app/src/main/java/io/legado/app/ui/book/read/config/BgTextConfigDialog.kt
  2. 1
      app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt

@ -120,6 +120,7 @@ class BgTextConfigDialog : BaseDialogFragment(), FileChooserDialog.CallBack {
var editText: AutoCompleteTextView? = null var editText: AutoCompleteTextView? = null
customView { customView {
layoutInflater.inflate(R.layout.dialog_edit_text, null).apply { layoutInflater.inflate(R.layout.dialog_edit_text, null).apply {
edit_view.setText(ReadBookConfig.durConfig.name)
editText = edit_view editText = edit_view
} }
} }
@ -130,7 +131,7 @@ class BgTextConfigDialog : BaseDialogFragment(), FileChooserDialog.CallBack {
} }
} }
cancelButton() cancelButton()
} }.show().applyTint()
} }
sw_dark_status_icon.onCheckedChange { buttonView, isChecked -> sw_dark_status_icon.onCheckedChange { buttonView, isChecked ->
if (buttonView?.isPressed == true) { if (buttonView?.isPressed == true) {

@ -245,6 +245,7 @@ class ReadStyleDialog : BaseDialogFragment(), FontSelectDialog.CallBack {
payloads: MutableList<Any> payloads: MutableList<Any>
) { ) {
holder.itemView.apply { holder.itemView.apply {
iv_style.setText(item.name.ifBlank { "文字" })
iv_style.setTextColor(item.curTextColor()) iv_style.setTextColor(item.curTextColor())
iv_style.setImageDrawable(item.curBgDrawable(100, 150)) iv_style.setImageDrawable(item.curBgDrawable(100, 150))
if (ReadBookConfig.styleSelect == holder.layoutPosition) { if (ReadBookConfig.styleSelect == holder.layoutPosition) {

Loading…
Cancel
Save