mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-16 10:48:46 +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
|
||||
public void acceptDelivery(Object delivered) {
|
||||
// Clear out old values
|
||||
runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
pNames.clear();
|
||||
pStores.clear();
|
||||
pPrices.clear();
|
||||
@ -218,6 +215,10 @@ public class ListPage extends AppCompatActivity implements Requestor.Receiver {
|
||||
storeHeaderIndex.clear();
|
||||
pListItemPair.clear();
|
||||
totalPrice = 0;
|
||||
|
||||
runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
tvTotalPrice.setText(String.format("$%.2f", totalPrice));
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user