@Override
 public void onResponse(ResponseStatus response, Object deliverParam) {
   if (mIsDestroy || !isAdded()) {
     return;
   }
   mUserInfo.photo = mBackupPhoto;
   if (mPhotoStatus == PhotoStatus.DELETE) {
     mBackupPhoto = null;
     mUserInfo.photo = null;
   }
   try {
     mUserDataProvider.setLoginUserInfo(mUserInfo.clone());
   } catch (Exception e) {
     Log.e(TAG, " " + e.getMessage());
   }
   LocalBroadcastManager.getInstance(mContext)
       .sendBroadcast(new Intent(Setting.BROADCAST_UPDATE_MYINFO));
   mPopup.dismissWiat();
   mPopup.show(
       PopupType.CONFIRM,
       getString(R.string.info),
       getString(R.string.user_modify_success),
       mPopupSucess,
       null,
       null);
 }
  private void setImage(Bitmap bmp) {
    if (bmp == null) {
      return;
    }
    mBlurBmp = ImageUtil.fastBlur(bmp, 32);
    mLayout.setBlurBackGroud(mBlurBmp);
    mRbmp = ImageUtil.getRoundedBitmap(bmp, false);
    mLayout.setUserPhoto(mRbmp);

    mPhotoStatus = PhotoStatus.MODIFY;
    mUserInfo.photo = Base64.encodeToString(ImageUtil.bitmapToByteArray(bmp), 0);
    mUserInfo.photo = mUserInfo.photo.replaceAll("\n", "");
    mBackupPhoto = mUserInfo.photo;
  }
 @Override
 public void OnPositive() {
   mUserInfo.photo = mBackupPhoto;
   if (mPhotoStatus == PhotoStatus.DELETE) {
     mBackupPhoto = null;
     mUserInfo.photo = null;
   }
   try {
     sendLocalBroadcast(Setting.BROADCAST_USER, mUserInfo.clone());
   } catch (CloneNotSupportedException e) {
     e.printStackTrace();
     return;
   }
   mScreenControl.backScreen();
 }
  private void UpdateClone() {
    if (mUserInfo.roles != null && mUserInfo.roles.size() > 0) {
      mUserInfo.password = mPasswordData;
      if (mLayout.getUserLoginID().equals("")) {
        mUserInfo.login_id = null;
      } else {
        mUserInfo.login_id = mLayout.getUserLoginID();
      }
    } else {
      mUserInfo.login_id = null;
      mUserInfo.password = null;
    }

    mUserInfo.name = mLayout.getUserName();
    mUserInfo.email = mLayout.getEmail();
    mUserInfo.phone_number = mLayout.getTelephone();

    if (mPinSwitch.getOn()) {
      if (mPinData != null && mPinData.length() > 3) {
        mUserInfo.pin_exist = true;
        mUserInfo.pin = mPinData;
      }
    } else {
      mUserInfo.pin = "";
    }

    switch (mPhotoStatus) {
      case NOT_MODIFY:
        if (mUserInfo.photo != null) {
          mBackupPhoto = mUserInfo.photo;
        }
        mUserInfo.photo = null;
        break;
      case MODIFY:
        break;
      case DELETE:
        mUserInfo.photo = "";
        break;
    }
  }