コード例 #1
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_cart);

    mStores = new ArrayList<>();
    init();
    //        getCarts();
    //        payOrder();
  }
コード例 #2
0
  @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();
  }