Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

Permalink
this fixes #1490
Browse files Browse the repository at this point in the history
  • Loading branch information
k0shk0sh committed Feb 16, 2018
1 parent 635a451 commit 0232f16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/com/fastaccess/helper/InputHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public static long toLong(@NonNull TextView textView) {
public static long toLong(@NonNull String text) {
if (!isEmpty(text)) {
try {
return Long.valueOf(text.replace(".", "").replaceAll(",", ""));
return Long.valueOf(text.replace(".", "")
.replaceAll(",", "")
.replaceAll(" ", ""));
} catch (NumberFormatException ignored) {}
}
return 0;
Expand Down

0 comments on commit 0232f16

Please sign in to comment.