use Config.AVATAR_SIZE as size for cropping avatar picture
This commit is contained in:
parent
a31b05628c
commit
8736a4af3a
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ public class PublishProfilePictureActivity extends XmppActivity {
|
|||
super.onActivityResult(requestCode, resultCode, data);
|
||||
if (resultCode == RESULT_OK && requestCode == Crop.REQUEST_PICK) {
|
||||
Uri destination = Uri.fromFile(new File(getCacheDir(), "croppedAvatar"));
|
||||
Crop.of(data.getData(), destination).withMaxSize(384,384).asSquare().start(PublishProfilePictureActivity.this);
|
||||
Crop.of(data.getData(), destination).withMaxSize(Config.AVATAR_SIZE, Config.AVATAR_SIZE).asSquare().start(PublishProfilePictureActivity.this);
|
||||
}
|
||||
if (requestCode == Crop.REQUEST_CROP) {
|
||||
this.avatarUri = Uri.fromFile(new File(getCacheDir(), "croppedAvatar"));
|
||||
|
|
Reference in a new issue