From 5d7716ecef441faa4c7635dcfebbee48109bc592 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 9 Mar 2020 19:48:54 +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/ui/widget/TitleBar.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/TitleBar.kt b/app/src/main/java/io/legado/app/ui/widget/TitleBar.kt index 8df952849..10cd4191f 100644 --- a/app/src/main/java/io/legado/app/ui/widget/TitleBar.kt +++ b/app/src/main/java/io/legado/app/ui/widget/TitleBar.kt @@ -144,10 +144,10 @@ class TitleBar(context: Context, attrs: AttributeSet?) : AppBarLayout(context, a backgroundColor = context.primaryColor // targetElevation = context.elevation stateListAnimator = null - if (AppConfig.elevation < 0) { - elevation = context.elevation + elevation = if (AppConfig.elevation < 0) { + context.elevation } else { - elevation = AppConfig.elevation.toFloat() + AppConfig.elevation.toFloat() } a.recycle()