@Override protected void onResume() { super.onResume(); updateOrderedDishCount(); if (mDishLstAdapter != null) { mDishLstAdapter.notifyDataSetChanged(); } }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.menu_activity); mMyOrder = new MyOrder(MenuActivity.this); mDishes = new Dishes(this); mCategories = new Categories(this); findViews(); setListData(); setClickListener(); mpDialog = new ProgressDialog(MenuActivity.this); mpDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); // mpDialog.setTitle("请稍等"); mpDialog.setIndeterminate(false); mpDialog.setCancelable(false); if (Info.isNewCustomer() && Info.getMode() == Info.WORK_MODE_CUSTOMER) { showGuide(); } }