Fix Cart and fix bug remove Cart

This commit is contained in:
phanhuuloi27
2022-07-03 20:34:00 +07:00
parent b40e0b6596
commit 1568a1b5fc
9 changed files with 112 additions and 81 deletions
@@ -117,7 +117,7 @@ public class Home extends AppCompatActivity implements NavigationView.OnNavigati
}
});
fab.setCount(new Database(this).getCountCart());
fab.setCount(new Database(this).getCountCart(Common.currentUser.getPhone()));
//View
swipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_layout);
@@ -290,7 +290,7 @@ public class Home extends AppCompatActivity implements NavigationView.OnNavigati
protected void onResume() {
super.onResume();
adapter.startListening();
fab.setCount(new Database(this).getCountCart());
fab.setCount(new Database(this).getCountCart(Common.currentUser.getPhone()));
}
private void updateToken(String token) {