From ea292d0448a718bd9d1737f2f8fff01a27bededb Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 29 Oct 2019 12:18:59 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/widget/anima/RotateLoading.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/anima/RotateLoading.kt b/app/src/main/java/io/legado/app/ui/widget/anima/RotateLoading.kt index a985b4719..7cdb12734 100644 --- a/app/src/main/java/io/legado/app/ui/widget/anima/RotateLoading.kt +++ b/app/src/main/java/io/legado/app/ui/widget/anima/RotateLoading.kt @@ -80,7 +80,10 @@ class RotateLoading : View { ) shadowPosition = typedArray.getInt(R.styleable.RotateLoading_shadow_position, DEFAULT_SHADOW_POSITION) speedOfDegree = typedArray.getInt(R.styleable.RotateLoading_loading_speed, DEFAULT_SPEED_OF_DEGREE) - hideMode = typedArray.getInt(R.styleable.RotateLoading_hide_mode, GONE) + hideMode = when (typedArray.getInt(R.styleable.RotateLoading_hide_mode, 2)) { + 1 -> INVISIBLE + else -> GONE + } typedArray.recycle() } speedOfArc = (speedOfDegree / 4).toFloat()