mirror of
https://github.com/Nezumi-2711/PRM392.git
synced 2026-09-22 20:00:53 +00:00
Fix Cart and fix bug remove Cart
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user