Skip to content

Commit

Permalink
Merge pull request #18 from Maangchi/Knappe-WorkBranch
Browse files Browse the repository at this point in the history
Added More amount types
  • Loading branch information
Knappecm authored Dec 11, 2021
2 parents 1e9f264 + 5410a93 commit d99a1d7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ public Ingredients_class (int ing_id, String name, int amount, String amount_typ
Amount_type = amount_type;
this.need = need;
}

public Ingredients_class() {
}

//toString
@Override
public String toString() {
Expand All @@ -31,7 +29,6 @@ public String toString() {
", need=" + need +
'}';
}

//getters and setters
public void setIng_id(int ing_id) {
this.ing_id = ing_id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ public void onClick(View v) {
openPantry();
}
});

recipe_btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
openRecipes();
}
});
}

public void openPantry() {
Expand Down
8 changes: 5 additions & 3 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
<string-array name="amount_types">
<item>Pounds</item>
<item>Ounces</item>
<item>Gallons</item>
<item>Quarts</item>
<item>Pints</item>
<item>Cups</item>
<item>tablespoon</item>
<item>teaspoon</item>
<item>Tablespoon</item>
<item>Teaspoon</item>
<item>Grams</item>
<item>Kilograms</item>
<item>Liter</item>
<item>MilliLiters</item>
<item>pint</item>
</string-array>
</resources>

0 comments on commit d99a1d7

Please sign in to comment.