diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-06-29 12:39:35 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-06-29 12:39:35 +0200 |
commit | 91aebd3a207536cd245b307be918841b7b6cf60f (patch) | |
tree | 43a7311d7e1dc20017bb05f916d6b5260b634bcb /src/main/java/eu/siacs/conversations/ui/ConversationActivity.java | |
parent | c6287b2e92e1126bf7cf9fc4e2e4253068acdea0 (diff) |
increased preview size
Diffstat (limited to 'src/main/java/eu/siacs/conversations/ui/ConversationActivity.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/ConversationActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java index c66428ed4..b62369a5e 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java @@ -1763,7 +1763,7 @@ public class ConversationActivity extends XmppActivity final Uri uri_preview = uri; Bitmap bitmap = BitmapFactory.decodeFile(FileUtils.getPath(this, uri)); if (bitmap != null) { - int scaleSize = 500; + int scaleSize = 600; int originalWidth = bitmap.getWidth(); int originalHeight = bitmap.getHeight(); int newWidth = -1; @@ -1787,8 +1787,8 @@ public class ConversationActivity extends XmppActivity LinearLayout.LayoutParams vp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT); ImagePreview.setLayoutParams(vp); - //ImagePreview.setMaxWidth(newWidth); - //ImagePreview.setMaxHeight(newHeight); + ImagePreview.setMaxWidth(newWidth); + ImagePreview.setMaxHeight(newHeight); //ImagePreview.setScaleType(ImageView.ScaleType.FIT_XY); //ImagePreview.setAdjustViewBounds(true); ImagePreview.setPadding(5, 5, 5, 5); |