From: Damyan Ivanov Date: Sat, 9 Feb 2019 10:18:36 +0000 (+0200) Subject: new transaction: pop up the date picker upon activity start X-Git-Tag: v0.5~1 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=a07d649;p=mobile-ledger.git new transaction: pop up the date picker upon activity start this helps avoid entering multiple transactions for today "on inertia" now that the date picker dialog is closed right after choosing the date, this still maintains a fuid UX --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java index 5f30a0fe..c6649734 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java @@ -130,7 +130,7 @@ public class NewTransactionActivity extends AppCompatActivity implements TaskCal @Override protected void onStart() { super.onStart(); - if (tvDescription.getText().toString().isEmpty()) tvDescription.requestFocus(); + if (tvDate.getText().toString().isEmpty()) tvDate.requestFocus(); } public void saveTransaction() { if (mSave != null) mSave.setVisible(false);