@Override public void onPostExecute(Integer result) { SocialDetailsWarningDialog dialog; if (result == 1) { hasContent = true; detailController.setComponentInfo(streamInfo); detailController.createCommentList(socialCommentList); detailController.setLikeInfoText(likeLinkedList); detailController.setLikedInfo(likeLinkedList); if (isLikeAction) { if (SocialTabsActivity.instance != null) { int tabId = SocialTabsActivity.instance.mPager.getCurrentItem(); switch (tabId) { case SocialTabsActivity.ALL_UPDATES: AllUpdatesFragment.instance.onPrepareLoad( ExoConstants.NUMBER_OF_ACTIVITY, true, currentPosition); break; case SocialTabsActivity.MY_CONNECTIONS: MyConnectionsFragment.instance.onPrepareLoad( ExoConstants.NUMBER_OF_ACTIVITY, true, currentPosition); break; case SocialTabsActivity.MY_SPACES: MySpacesFragment.instance.onPrepareLoad( ExoConstants.NUMBER_OF_ACTIVITY, true, currentPosition); break; case SocialTabsActivity.MY_STATUS: MyStatusFragment.instance.onPrepareLoad( ExoConstants.NUMBER_OF_ACTIVITY, true, currentPosition); break; } } } } else { dialog = new SocialDetailsWarningDialog( mContext, titleString, detailsErrorStr, okString, hasContent); dialog.show(); } detailController.setLoading(false); SocialDetailActivity.socialDetailActivity.startScreen.setVisibility(View.GONE); }
@Override public void onPreExecute() { detailController.setLoading(true); }
@Override protected void onCancelled(Integer result) { detailController.setLoading(false); }