From: Damyan Ivanov Date: Sun, 9 Dec 2018 11:59:45 +0000 (+0000) Subject: run check_transaction_submittable when local menu is created X-Git-Tag: v0.3~277 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=7eb1cdd92af946d3ee5280db8dcb13d1144db7d5;p=mobile-ledger.git run check_transaction_submittable when local menu is created that method enables/disables the save transaction menu item --- diff --git a/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java b/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java index 5ab1af08..ca181200 100644 --- a/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java @@ -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; }