From 3e99a64bf79823629c50672f591cc51a43b9e178 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 14 May 2020 23:42:01 +0300 Subject: [PATCH] stop --- .../mobileledger/ui/activity/NewTransactionItemHolder.java | 7 ------- app/src/main/res/layout/new_transaction_row.xml | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java index a3dd711d..16ef747e 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java @@ -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; diff --git a/app/src/main/res/layout/new_transaction_row.xml b/app/src/main/res/layout/new_transaction_row.xml index ab1668cb..af8281e2 100644 --- a/app/src/main/res/layout/new_transaction_row.xml +++ b/app/src/main/res/layout/new_transaction_row.xml @@ -172,7 +172,7 @@ 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" -- 2.39.5