Ejemplo n.º 1
0
 @Override
 public View getView(int arg0, View arg1, ViewGroup arg2) {
   if (arg0 == 0) {
     return title;
   } else {
     PostInfo pi = getItem(arg0 - 1);
     if (SharedInfoController.showAvatar()) {
       pi.tryLoadAvatar();
     } else {
       pi.addAvatarLoadByClick();
     }
     return pi.getView();
   }
 }
 public void callbackHander(String doc) {
   if (doc != null) {
     Document document = Jsoup.parse(doc);
     if (document.title().equals(getString(R.string.keyword_ads_check))) {
       SharedInfoController.showCommonAlertDialog(this, R.string.msg_adsAlert, null);
     } else if (document.title().equals(getString(R.string.keyword_tip_check))) {
       int startIndex = doc.lastIndexOf("guestJs=");
       if (startIndex != -1) {
         refreshView();
         return;
       } else {
         SharedInfoController.showCommonAlertDialog(this, R.string.msg_errerMsg, null);
       }
     } else if (ala.setData(document)) {
       ala.notifyDataSetChanged();
       htla.notifyDataSetChanged();
       lv.setSelectionAfterHeaderView();
     }
   }
   if (gsdt != null) {
     gsdt = null;
   }
   closeContectionProgressDialog();
 }