mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-15 18:28:47 +00:00
Fix list price display
This commit is contained in:
parent
cfc8b65d47
commit
9c9219bd6c
@ -370,7 +370,7 @@ public class ListPage extends AppCompatActivity implements Requestor.Receiver {
|
||||
if(!pNames.isEmpty()) {
|
||||
name.setText(pNames.get(position));
|
||||
store.setText(pStores.get(position));
|
||||
if (Double.parseDouble(pPrices.get(position)) * Double.parseDouble(pQuantity.get(position)) < 0) {
|
||||
if (Double.parseDouble(pPrices.get(position)) * Double.parseDouble(pQuantity.get(position)) <= 0) {
|
||||
price.setText(String.format("$%s", pPrices.get(position)));
|
||||
} else {
|
||||
price.setText(String.format("$%s ($%.2f)", pPrices.get(position), Double.parseDouble(pPrices.get(position)) * Double.parseDouble(pQuantity.get(position))));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user