From a07d649c39d8b77fefe5954b72ff053a57bd96cc Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 9 Feb 2019 12:18:36 +0200 Subject: [PATCH] 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 --- .../ktnx/mobileledger/ui/activity/NewTransactionActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5