mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-16 18:48:48 +00:00
Finished pull-to-refresh on list activity
This commit is contained in:
parent
50473b3cdc
commit
99a8d4ca9f
@ -205,9 +205,6 @@ public class ListPage extends AppCompatActivity implements Requestor.Receiver {
|
|||||||
@Override
|
@Override
|
||||||
public void acceptDelivery(Object delivered) {
|
public void acceptDelivery(Object delivered) {
|
||||||
// Clear out old values
|
// Clear out old values
|
||||||
runOnUiThread(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
pNames.clear();
|
pNames.clear();
|
||||||
pStores.clear();
|
pStores.clear();
|
||||||
pPrices.clear();
|
pPrices.clear();
|
||||||
@ -218,6 +215,10 @@ public class ListPage extends AppCompatActivity implements Requestor.Receiver {
|
|||||||
storeHeaderIndex.clear();
|
storeHeaderIndex.clear();
|
||||||
pListItemPair.clear();
|
pListItemPair.clear();
|
||||||
totalPrice = 0;
|
totalPrice = 0;
|
||||||
|
|
||||||
|
runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
tvTotalPrice.setText(String.format("$%.2f", totalPrice));
|
tvTotalPrice.setText(String.format("$%.2f", totalPrice));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user