@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_cart); mStores = new ArrayList<>(); init(); // getCarts(); // payOrder(); }
@Override protected void onResume() { super.onResume(); user = GeekApplication.getUser(); if (user != null) { userId = user.getId(); token = user.getToken(); getCarts(); } else { userId = ""; token = ""; mListView.setVisibility(View.GONE); mBottomLayout.setVisibility(View.GONE); mEmptyLayout.setVisibility(View.VISIBLE); } getGuessLike(); }