mirror of
https://github.com/mihonapp/mihon.git
synced 2025-02-18 20:09:49 +03:00
Fix FAB behavior
This commit is contained in:
parent
495f5d03ac
commit
810f5ad531
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ import android.support.design.widget.FloatingActionButton
|
||||||
import android.support.v4.view.ViewCompat
|
import android.support.v4.view.ViewCompat
|
||||||
import android.view.View
|
import android.view.View
|
||||||
|
|
||||||
abstract class FABAnimationBase() : FloatingActionButton.Behavior() {
|
abstract class FABAnimationBase : FloatingActionButton.Behavior() {
|
||||||
|
|
||||||
var isAnimatingOut = false
|
var isAnimatingOut = false
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ class FABAnimationUpDown @JvmOverloads constructor(ctx: Context, attrs: Attribut
|
||||||
|
|
||||||
override fun onAnimationEnd(animation: Animation) {
|
override fun onAnimationEnd(animation: Animation) {
|
||||||
isAnimatingOut = false
|
isAnimatingOut = false
|
||||||
button.visibility = View.GONE
|
button.visibility = View.INVISIBLE
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onAnimationRepeat(animation: Animation) {
|
override fun onAnimationRepeat(animation: Animation) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue