From 36bd755b0bfe2325af43fb2768c2425e667decf6 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 12 Feb 2020 23:50:00 +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 --- app/src/main/java/io/legado/app/lib/theme/view/ATESeekBar.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/lib/theme/view/ATESeekBar.kt b/app/src/main/java/io/legado/app/lib/theme/view/ATESeekBar.kt index 2d793ba82..3b8f046aa 100644 --- a/app/src/main/java/io/legado/app/lib/theme/view/ATESeekBar.kt +++ b/app/src/main/java/io/legado/app/lib/theme/view/ATESeekBar.kt @@ -12,6 +12,8 @@ import io.legado.app.lib.theme.accentColor class ATESeekBar(context: Context, attrs: AttributeSet) : AppCompatSeekBar(context, attrs) { init { - ATH.setTint(this, context.accentColor) + if (!isInEditMode) { + ATH.setTint(this, context.accentColor) + } } }