From 669e6f599faef3df0d4c45b1604d6d45f4264392 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 27 Oct 2020 15:22:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/book/read/config/BgTextConfigDialog.kt | 3 ++- .../java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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) {