]> git.ktnx.net Git - mobile-ledger.git/commitdiff
focus on the description if it is empty, when the activity is (re-)started
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 9 Dec 2018 17:12:38 +0000 (17:12 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 9 Dec 2018 17:12:38 +0000 (17:12 +0000)
app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java

index a97a706b4626dd76eba6fc7cc57390363b83682c..76b0224a368a40ed3613f5c8c5c3f6d1b7cc87c1 100644 (file)
@@ -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();