From 18ff21fe1f479273f0a6be8c7d10b03e537169e9 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 22 Feb 2020 21:46:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/book/read/config/BgTextConfigDialog.kt | 2 +- 1 file changed, 1 insertion(+), 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 f4f1d9ff8..01ad8c895 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 @@ -155,7 +155,7 @@ class BgTextConfigDialog : DialogFragment() { override fun registerListener(holder: ItemViewHolder) { holder.itemView.apply { this.onClick { - getItem(holder.layoutPosition)?.let { + getItem(holder.layoutPosition - getHeaderCount())?.let { ReadBookConfig.durConfig.setBg(1, it) ReadBookConfig.upBg() postEvent(EventBus.UP_CONFIG, false)