@Override public void handleMessage(Message msg) { switch (msg.what) { case 0: boolean b = (Boolean) msg.obj; if (loadDialog != null) loadDialog.dismiss(); if (b) { openGuestInfo(); } else { makeText(getString(R.string.hotel_label_18)); } break; case 1: boolean bb = (Boolean) msg.obj; if (loadDialog != null) loadDialog.dismiss(); if (bb) { if (HotelMainActivity.instance != null) HotelMainActivity.instance.getMyCardListData(null); if (ChatMessageInfoActivity.instance != null) ChatMessageInfoActivity.instance.setGroupName(groupName); if (MessageListActivity.instance != null) MessageListActivity.instance.setGroupName(groupName); openGuestInfo(); } else { makeText(getString(R.string.hotel_label_18)); } break; } }
public void showMyLoadingDialog() { loadDialog = new MyLoadingDialog(this, getString(R.string.map_lable_11), R.style.MyDialog); loadDialog.show(); }