]> git.ktnx.net Git - mobile-ledger.git/commitdiff
NT: do not select all text in description and account name
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 25 Nov 2019 21:11:47 +0000 (23:11 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 25 Nov 2019 21:11:47 +0000 (23:11 +0200)
we have the [X] to clear the input if needed and auto-select-all on
large inputs is visually disturbing

app/src/main/res/layout/new_transaction_row.xml

index ad180a59cd2f3a4086bdc2c9a0d12b1fe82d8738..fcc18a3808ca9b1d494fd9a02dc27b5fc4310b82 100644 (file)
@@ -66,7 +66,7 @@
             android:inputType="text"
             android:nextFocusLeft="@+id/new_transaction_date"
             android:nextFocusUp="@+id/new_transaction_date"
-            android:selectAllOnFocus="true"
+            android:selectAllOnFocus="false"
             android:singleLine="true"
             app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintEnd_toEndOf="parent"
             android:layout_height="wrap_content"
             android:layout_weight="9"
             android:hint="@string/new_transaction_account_hint"
+            android:selectAllOnFocus="false"
             android:inputType="text"
             android:imeOptions="actionNext"
             android:singleLine="true"
-            android:selectAllOnFocus="true"
             android:width="0dp" />
 
         <EditText