[Android] Add Locale support to wallet send value parsing

This commit is contained in:
wchen342
2022-09-23 16:55:26 +03:00
parent a4eb2dffef
commit 60d237c72d
4 changed files with 103 additions and 52 deletions
@@ -95,11 +95,15 @@
android:textColor="@color/wallet_text_color"
android:textSize="20sp"/>
<!-- android:digits is a workaround for a 13 years old bug which Google claimed to have fixed but actually not:
- https://issuetracker.google.com/issues/36907764
- https://stackoverflow.com/questions/3821539/decimal-separator-comma-with-numberdecimal-inputtype-in-edittext -->
<EditText
android:id="@+id/from_value_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="numberDecimal"
android:inputType="number"
android:digits="0123456789.,"
android:textColor="@color/wallet_text_color"
android:textSize="20sp"/>