]> git.ktnx.net Git - mobile-ledger.git/commitdiff
debug++
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 4 Mar 2021 19:43:21 +0000 (21:43 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 4 Mar 2021 19:43:21 +0000 (21:43 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java

index 96e9137286aa8d88227f8161371064752be4b77c..48b2b1e487cbbd1ecddb99f0f66e323a4c94eef5 100644 (file)
@@ -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);