From f3644d3d9a8fd5889452a7cb9eb163ddc99878ae Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 30 Sep 2020 17:31:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/widget/recycler/scroller/FastScroller.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/recycler/scroller/FastScroller.kt b/app/src/main/java/io/legado/app/ui/widget/recycler/scroller/FastScroller.kt index 20f638d61..7a66873d5 100644 --- a/app/src/main/java/io/legado/app/ui/widget/recycler/scroller/FastScroller.kt +++ b/app/src/main/java/io/legado/app/ui/widget/recycler/scroller/FastScroller.kt @@ -173,7 +173,7 @@ class FastScroller : LinearLayout { */ fun setFadeScrollbar(fadeScrollbar: Boolean) { mFadeScrollbar = fadeScrollbar - mScrollbar.visibility = if (fadeScrollbar) View.GONE else View.VISIBLE + mScrollbar.visibility = if (fadeScrollbar) View.INVISIBLE else View.VISIBLE } /** @@ -191,7 +191,7 @@ class FastScroller : LinearLayout { * @param visible True to show scroll track, false to hide */ fun setTrackVisible(visible: Boolean) { - mTrackView.visibility = if (visible) View.VISIBLE else View.GONE + mTrackView.visibility = if (visible) View.VISIBLE else View.INVISIBLE } /** @@ -264,7 +264,7 @@ class FastScroller : LinearLayout { override fun setEnabled(enabled: Boolean) { super.setEnabled(enabled) - visibility = if (enabled) View.VISIBLE else View.GONE + visibility = if (enabled) View.VISIBLE else View.INVISIBLE } @SuppressLint("ClickableViewAccessibility") @@ -411,13 +411,13 @@ class FastScroller : LinearLayout { .setListener(object : AnimatorListenerAdapter() { override fun onAnimationEnd(animation: Animator) { super.onAnimationEnd(animation) - mBubbleView.visibility = View.GONE + mBubbleView.visibility = View.INVISIBLE mBubbleAnimator = null } override fun onAnimationCancel(animation: Animator) { super.onAnimationCancel(animation) - mBubbleView.visibility = View.GONE + mBubbleView.visibility = View.INVISIBLE mBubbleAnimator = null } }) @@ -447,13 +447,13 @@ class FastScroller : LinearLayout { .setListener(object : AnimatorListenerAdapter() { override fun onAnimationEnd(animation: Animator) { super.onAnimationEnd(animation) - mScrollbar.visibility = View.GONE + mScrollbar.visibility = View.INVISIBLE mScrollbarAnimator = null } override fun onAnimationCancel(animation: Animator) { super.onAnimationCancel(animation) - mScrollbar.visibility = View.GONE + mScrollbar.visibility = View.INVISIBLE mScrollbarAnimator = null } })