private void handleCrop(int resultCode, Intent result) { if (resultCode == RESULT_OK) { isNeedUpdateAvatar = true; avatarBitmapCurrent = imageUtils.getBitmap(outputUri); avatarImageView.setImageBitmap(avatarBitmapCurrent); startAction(); } /* else if (resultCode == Crop.RESULT_ERROR) { DialogUtils.showLong(this, Crop.getError(result).getMessage()); }*/ }
public void changeAvatarOnClick(View view) { canPerformLogout.set(false); imageUtils.getImage(); }