Skip to content

Commit 37d6809

Browse files
author
J Liu
committed
Fixes remaining intake
1 parent 869f03a commit 37d6809

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/com/example/deco3801project/InputInformation.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,10 @@ public void handleText(View v) {
137137
boolean gender = genderButton.getText().toString().equalsIgnoreCase("Male");
138138
if (!intake.equals("")) {
139139
edit.putInt("recommendedIntake", Integer.parseInt(intake));
140+
edit.putInt("currentAmountLeftToDrink", Integer.parseInt(intake));
140141
} else {
141142
edit.putInt("recommendedIntake", calculateIntake(age, gender));
143+
edit.putInt("currentAmountLeftToDrink", calculateIntake(age, gender));
142144
}
143145
edit.apply();
144146

0 commit comments

Comments
 (0)