From: Damyan Ivanov Date: Sun, 9 Dec 2018 17:12:38 +0000 (+0000) Subject: focus on the description if it is empty, when the activity is (re-)started X-Git-Tag: v0.3~261 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=1c0e2d10b34971eb106108e3acaaf4ea8668eb77;p=mobile-ledger.git focus on the description if it is empty, when the activity is (re-)started --- diff --git a/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java b/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java index a97a706b..76b0224a 100644 --- a/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java @@ -94,6 +94,13 @@ public class NewTransactionActivity extends AppCompatActivity implements TaskCal } } + @Override + protected + void onStart() { + super.onStart(); + if (text_descr.getText().toString().isEmpty()) text_descr.requestFocus(); + } + @Override public void finish() { super.finish();