aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorPhilip Flohr <philip.flohr@student.kit.edu>2015-11-06 12:32:07 +0100
committerPhilip Flohr <philip.flohr@student.kit.edu>2015-11-06 12:32:07 +0100
commit8736a4af3ac28ea9993e7d898bcc5007b6e15b24 (patch)
tree6164f611cb650e3621cc4cc5cfb8438af9da6dfc /src/main
parenta31b05628cfb84e9ffb0aaa4f4458b74d88179ed (diff)
use Config.AVATAR_SIZE as size for cropping avatar picture
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/PublishProfilePictureActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/PublishProfilePictureActivity.java b/src/main/java/eu/siacs/conversations/ui/PublishProfilePictureActivity.java
index 3d5cb0907..afcbeb7c7 100644
--- a/src/main/java/eu/siacs/conversations/ui/PublishProfilePictureActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/PublishProfilePictureActivity.java
@@ -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"));