@Override
  protected void handleUiMessage(Message msg) {
    // TODO Auto-generated method stub
    super.handleUiMessage(msg);
    swipeRefresh.setRefreshing(false);
    mAdapter.setIsIniting(false);
    RequestBaseResponse response = (RequestBaseResponse) msg.obj;
    switch (msg.what) {
      case GET_ALBUM_ITEM_LIST:
        if (response.isSuccess) { // 获取成功
          AlbumPhotoItem[] itemList = (AlbumPhotoItem[]) response.body;
          notifyData(itemList);
        } else { // 请求失败
          if (getActivity() != null) {
            Toast.makeText(
                    getActivity(),
                    getResources().getString(R.string.album_photolist_update_error),
                    Toast.LENGTH_LONG)
                .show();
          }
        }
        break;

      default:
        break;
    }
  }
 @Override
 protected void handleUiMessage(Message msg) {
   // TODO Auto-generated method stub
   super.handleUiMessage(msg);
   switch (msg.what) {
     case GET_MAGICICON_CALLBACK:
       mProgress.setVisibility(View.GONE);
       if (msg.arg1 == 1) { // 小高表请求成功
         MagicIconConfig item = (MagicIconConfig) msg.obj;
         if (item != null) {
           if (mMagicIconConfig == null) {
             // 本地无数据或者数据更新时,刷新界面
             mMagicIconConfig = mLiveChatManager.GetMagicIconConfigItem();
             updateView();
           }
         }
       }
       break;
     default:
       break;
   }
 }