From e6cc9c729e994f4d9c9c0b468ed1fd093052f0e1 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 4 Mar 2021 21:43:21 +0200 Subject: [PATCH] debug++ --- .../main/java/net/ktnx/mobileledger/ui/FabManager.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java b/app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java index 96e91372..48b2b1e4 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java @@ -61,8 +61,10 @@ public class FabManager { }); } public void showFab() { - if (wantedFabState == FAB_SHOWN) + if (wantedFabState == FAB_SHOWN) { + Logger.debug("fab", "Ignoring request to show already visible FAB"); return; + } // b.btnAddTransaction.show(); if (this.fabSlideAnimator != null) { @@ -70,13 +72,16 @@ public class FabManager { fab.clearAnimation(); } + Logger.debug("fab", "Showing FAB"); wantedFabState = FAB_SHOWN; slideFabTo(0, 200L, com.google.android.material.animation.AnimationUtils.LINEAR_OUT_SLOW_IN_INTERPOLATOR); } public void hideFab() { - if (wantedFabState == FAB_HIDDEN) + if (wantedFabState == FAB_HIDDEN) { + Logger.debug("fab", "Ignoring request to hide FAB -- already hidden"); return; + } calcVerticalFabOffset(); @@ -86,6 +91,7 @@ public class FabManager { fab.clearAnimation(); } + Logger.debug("fab", "Hiding FAB"); wantedFabState = FAB_HIDDEN; slideFabTo(fabVerticalOffset, 150L, com.google.android.material.animation.AnimationUtils.FAST_OUT_LINEAR_IN_INTERPOLATOR); -- 2.39.5