예제 #1
0
 private void updateUser() {
   UserPrvdr userPrvdr = new UserPrvdr();
   user.name = nickName.getText().toString();
   final ProgressDialog progressDialog = new ProgressDialog(this);
   progressDialog.setMessage("保存中...");
   progressDialog.show();
   userPrvdr.cancelFollowUser(
       user,
       new NetLoaderListener<Boolean>() {
         @Override
         public void onComplete(boolean statue, Boolean result) {
           ToastUtil.showLongToast(SetUserInfoActivity.this, "保存成功!");
           progressDialog.dismiss();
           SetUserInfoActivity.this.finish();
         }
       });
 }
예제 #2
0
 @Override
 public void updateFeedTextView(int count) {
   mUser.feedCount = count;
   mPostedCountTv.setText(String.valueOf(count));
 }