コード例 #1
0
 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());
     }*/
 }
コード例 #2
0
 public void changeAvatarOnClick(View view) {
   canPerformLogout.set(false);
   imageUtils.getImage();
 }