mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2026-03-10 18:55:03 +00:00
Finished pull-to-refresh on list activity
This commit is contained in:
@@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user