Commit ce161a7c authored by Sam's avatar Sam

bug fix

parent bd57ab3d
......@@ -94,7 +94,7 @@ public class cafe_activity extends AppCompatActivity implements View.OnClickList
if (buttonChecker && !quant_CounterString.equals("99")) {
quantityCounter++;
} else if (!buttonChecker && !quant_CounterString.equals("0") && !quant_CounterString.equals("")) {
} else if (!buttonChecker && !quant_CounterString.equals("0") && !quant_CounterString.equals("") ) {
quantityCounter--;
} else {
......@@ -180,7 +180,8 @@ public class cafe_activity extends AppCompatActivity implements View.OnClickList
String cafePrice = cafeItemList.get(i).getPrice();
if (!cafeQuantity.equals("0") && !cafeQuantity.equals("")) {
if (!cafeQuantity.equals("0") && !cafeQuantity.equals("") && !cafeQuantity.equals("00")) {
Log.d("cafeQuantity", "The q is: " + cafeQuantity);
itemQuantityCafe.add(cafeQuantity);
itemNameCafe.add(cafeName);
......
......@@ -182,7 +182,7 @@ public class shop_activity extends AppCompatActivity implements View.OnClickList
String shopQuantity = shopItemList.get(i).getQuantity();
String shopItem = shopItemList.get(i).getItem();
String shopPriceName = shopItemList.get(i).getPrice();
if (!shopQuantity.equals("0") && !shopQuantity.equals("")) {
if (!shopQuantity.equals("0") && !shopQuantity.equals("") && !shopQuantity.equals("00")) {
itemQuantityShop.add(shopQuantity);
itemNameShop.add(shopItem);
itemPriceShop.add(shopPriceName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment