// 更新本地用户信息
 private void updateLocalUser(String imageKey) {
   ContentValues cv = new ContentValues();
   if (user != null) {
     user.user_avatar = GlobalContants.FILE_URL + imageKey;
     cv.put("avatar", user.user_avatar);
     databaseUtils.updateTable("user", cv, "id = ?", new String[] {user.user_id});
     x.image().bind(ivAvatar, user.user_avatar);
     loadingDialog.cancel();
   }
 }
  @Override
  protected void onResume() {
    super.onResume();

    user = databaseUtils.queryUser(userID);
    LogUtils.d("user", user.toString());
    LogUtils.d("avataravatarqqqq", "::" + user.user_avatar);
    if (user != null) {
      ImageOptions imageOptions =
          new ImageOptions.Builder()
              .setIgnoreGif(true)
              .setImageScaleType(ImageView.ScaleType.CENTER_CROP)
              .setFailureDrawableId(R.drawable.person_avatar_default_round)
              .setLoadingDrawableId(R.drawable.person_avatar_default_round)
              .build();
      x.image().bind(ivAvatar, user.user_avatar, imageOptions);

      tvUserSex.setText(user.user_sex);
      tvUserName.setText(user.user_name);
      tvUserCity.setText(user.user_city);
      tvSignature.setText(user.user_signature);
    }
  }