]> git.ktnx.net Git - mobile-ledger.git/commitdiff
new transaction: avoid manipulating the FAB directly, use the manager
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 4 Mar 2021 19:43:08 +0000 (21:43 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 4 Mar 2021 19:43:08 +0000 (21:43 +0200)
direct manipulation leads to inconsistency - the manager thinks that the
fab is visible and refuses to show it

app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionActivity.java

index 4b1fce945e74a1788898c0b0428bd1aa963559e6..3e1772608fd931f652258204f9ccc3bd6558d8ef 100644 (file)
@@ -416,7 +416,7 @@ public class NewTransactionActivity extends ProfileThemedActivity
         });
     }
     private void onFabPressed() {
-        b.fabAdd.hide();
+        fabManager.hideFab();
         Misc.hideSoftKeyboard(this);
 
         LedgerTransaction tr = model.constructLedgerTransaction();