From 810f5ad531a90084a3d28e4412c06c2a2e4266f6 Mon Sep 17 00:00:00 2001 From: len Date: Thu, 2 Feb 2017 16:48:18 +0100 Subject: [PATCH] Fix FAB behavior --- .../main/java/eu/kanade/tachiyomi/widget/FABAnimationBase.kt | 2 +- .../main/java/eu/kanade/tachiyomi/widget/FABAnimationUpDown.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/FABAnimationBase.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/FABAnimationBase.kt index cfffeb5996..7a847f1879 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/FABAnimationBase.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/FABAnimationBase.kt @@ -5,7 +5,7 @@ import android.support.design.widget.FloatingActionButton import android.support.v4.view.ViewCompat import android.view.View -abstract class FABAnimationBase() : FloatingActionButton.Behavior() { +abstract class FABAnimationBase : FloatingActionButton.Behavior() { var isAnimatingOut = false diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/FABAnimationUpDown.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/FABAnimationUpDown.kt index 3fa25c4d00..ea9e0f89ea 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/FABAnimationUpDown.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/FABAnimationUpDown.kt @@ -34,7 +34,7 @@ class FABAnimationUpDown @JvmOverloads constructor(ctx: Context, attrs: Attribut override fun onAnimationEnd(animation: Animation) { isAnimatingOut = false - button.visibility = View.GONE + button.visibility = View.INVISIBLE } override fun onAnimationRepeat(animation: Animation) {