コード例 #1
0
  @Override
  public void onResume() {
    super.onResume();

    setProfileView();

    BaiduAnalyzeUtils.onPageStart("个人微博");

    // 分组发生改变
    if (ActivityHelper.getInstance().getBooleanShareData("ChanneSortHasChanged", false)
        || ActivityHelper.getInstance().getBooleanShareData("offlineChanneChanged", false)) {
      setGroupList();
    }
  }
コード例 #2
0
    @Override
    protected void onSuccess(StatusContents result) {
      super.onSuccess(result);

      if (result == null) return;

      setProfileView();
      getActivity().invalidateOptionsMenu();

      if (result != null
          && result.getStatuses().size() == 1
          && getTaskCount(getTaskId()) == 1
          && !ActivityHelper.getInstance().getBooleanShareData("donotRemindFuckSina", false)) {
        new AlertDialog.Builder(getActivity())
            .setMessage(R.string.profile_fuck_sina)
            .setPositiveButton(R.string.i_know, null)
            .setNegativeButton(
                R.string.donnot_remind,
                new DialogInterface.OnClickListener() {

                  @Override
                  public void onClick(DialogInterface dialog, int which) {
                    ActivityHelper.getInstance().putBooleanShareData("donotRemindFuckSina", true);
                  }
                })
            .show();
      }
    }