Skip to content

Commit

Permalink
Further finalization of 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GittyMac committed Jan 30, 2021
1 parent bca86f0 commit e787bf3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.lako.walletcount"
minSdkVersion 23
targetSdkVersion 29
versionCode 1
versionName "1.0"
versionCode 2
versionName '1.1'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Expand Up @@ -69,8 +69,7 @@ public void onClick(View v) {

loadData();

double num1 = Double.parseDouble(textbudget);
double num2 = Double.parseDouble("0.00");
double num1 = Double.parseDouble(textbudget.replaceAll(",", "."));
if(num1<0){
message1.setText("We can work on that.");
message2.setText("You went over your budget!");
Expand Down Expand Up @@ -105,8 +104,8 @@ public void loadData(){

public void updateViews(){
amountLeft.setText(textbudget);
double defb = Double.parseDouble(defbudget);
double txtb = Double.parseDouble(textbudget);
double defb = Double.parseDouble(defbudget.replaceAll(",", "."));
double txtb = Double.parseDouble(textbudget.replaceAll(",", "."));
int txte = (int)Math.round(txtb);
int defe = (int)Math.round(defb);
progressBar.setMax(defe);
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/2.txt
@@ -0,0 +1 @@
Fixed a bug that causes the app to crash when using a comma as a decimal point.

0 comments on commit e787bf3

Please sign in to comment.