]> git.ktnx.net Git - mobile-ledger.git/commitdiff
run check_transaction_submittable when local menu is created
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 9 Dec 2018 11:59:45 +0000 (11:59 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 9 Dec 2018 11:59:45 +0000 (11:59 +0000)
that method enables/disables the save transaction menu item

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

index 5ab1af08b2b5a913eaec9db095add5f84e550570..ca1812008e53fecc06d9f588fcc42abbec058b09 100644 (file)
@@ -234,6 +234,8 @@ public class NewTransactionActivity extends AppCompatActivity implements TaskCal
         mSave = menu.findItem(R.id.action_submit_transaction);
         if (mSave == null) throw new AssertionError();
 
+        check_transaction_submittable();
+
         return true;
     }