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 ...@@ -94,7 +94,7 @@ public class cafe_activity extends AppCompatActivity implements View.OnClickList
if (buttonChecker && !quant_CounterString.equals("99")) { if (buttonChecker && !quant_CounterString.equals("99")) {
quantityCounter++; quantityCounter++;
} else if (!buttonChecker && !quant_CounterString.equals("0") && !quant_CounterString.equals("")) { } else if (!buttonChecker && !quant_CounterString.equals("0") && !quant_CounterString.equals("") ) {
quantityCounter--; quantityCounter--;
} else { } else {
...@@ -180,7 +180,8 @@ public class cafe_activity extends AppCompatActivity implements View.OnClickList ...@@ -180,7 +180,8 @@ public class cafe_activity extends AppCompatActivity implements View.OnClickList
String cafePrice = cafeItemList.get(i).getPrice(); 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); Log.d("cafeQuantity", "The q is: " + cafeQuantity);
itemQuantityCafe.add(cafeQuantity); itemQuantityCafe.add(cafeQuantity);
itemNameCafe.add(cafeName); itemNameCafe.add(cafeName);
......
...@@ -182,7 +182,7 @@ public class shop_activity extends AppCompatActivity implements View.OnClickList ...@@ -182,7 +182,7 @@ public class shop_activity extends AppCompatActivity implements View.OnClickList
String shopQuantity = shopItemList.get(i).getQuantity(); String shopQuantity = shopItemList.get(i).getQuantity();
String shopItem = shopItemList.get(i).getItem(); String shopItem = shopItemList.get(i).getItem();
String shopPriceName = shopItemList.get(i).getPrice(); String shopPriceName = shopItemList.get(i).getPrice();
if (!shopQuantity.equals("0") && !shopQuantity.equals("")) { if (!shopQuantity.equals("0") && !shopQuantity.equals("") && !shopQuantity.equals("00")) {
itemQuantityShop.add(shopQuantity); itemQuantityShop.add(shopQuantity);
itemNameShop.add(shopItem); itemNameShop.add(shopItem);
itemPriceShop.add(shopPriceName); 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