diff --git a/app/src/main/java/io/legado/app/ui/book/read/config/BgTextConfigDialog.kt b/app/src/main/java/io/legado/app/ui/book/read/config/BgTextConfigDialog.kt index 805bec4a3..5e5d64e2e 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/config/BgTextConfigDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/config/BgTextConfigDialog.kt @@ -120,6 +120,7 @@ class BgTextConfigDialog : BaseDialogFragment(), FileChooserDialog.CallBack { var editText: AutoCompleteTextView? = null customView { layoutInflater.inflate(R.layout.dialog_edit_text, null).apply { + edit_view.setText(ReadBookConfig.durConfig.name) editText = edit_view } } @@ -130,7 +131,7 @@ class BgTextConfigDialog : BaseDialogFragment(), FileChooserDialog.CallBack { } } cancelButton() - } + }.show().applyTint() } sw_dark_status_icon.onCheckedChange { buttonView, isChecked -> if (buttonView?.isPressed == true) { diff --git a/app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt b/app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt index 99e4a30f1..df5ad0474 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt @@ -245,6 +245,7 @@ class ReadStyleDialog : BaseDialogFragment(), FontSelectDialog.CallBack { payloads: MutableList ) { holder.itemView.apply { + iv_style.setText(item.name.ifBlank { "文字" }) iv_style.setTextColor(item.curTextColor()) iv_style.setImageDrawable(item.curBgDrawable(100, 150)) if (ReadBookConfig.styleSelect == holder.layoutPosition) {