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()