]> git.ktnx.net Git - mobile-ledger.git/commitdiff
stop
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 14 May 2020 20:42:01 +0000 (23:42 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 14 May 2020 20:42:01 +0000 (23:42 +0300)
app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java
app/src/main/res/layout/new_transaction_row.xml

index a3dd711d9ebe1ad7102bbb933b567e21e4991600..16ef747e757d10d1ff130d41f91f725bd1ac2448 100644 (file)
@@ -244,13 +244,6 @@ class NewTransactionItemHolder extends RecyclerView.ViewHolder
             cpf.show(activity.getSupportFragmentManager(), "currency-selector");
         });
 
-        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
-            tvAmount.setKeyListener(
-                    DigitsKeyListener.getInstance(Data.locale.getValue(), true, true));
-        else
-            tvAmount.setKeyListener(
-                    DigitsKeyListener.getInstance("0123456789+-" + decimalSeparator + decimalDot));
-
         dateObserver = date -> {
             if (syncingData)
                 return;
index ab1668cbffd19e9c8302c07ce663e64171c9ce5b..af8281e2b065f461aecb1ed3d2d5371a91ef7ca8 100644 (file)
                 android:gravity="bottom|end"
                 android:hint="@string/zero_amount"
                 android:imeOptions="actionNext"
-                android:inputType="numberSigned|numberDecimal|number"
+                android:inputType="number|numberSigned|numberDecimal"
                 android:minEms="4"
                 android:selectAllOnFocus="true"
                 android:textAlignment="viewEnd"