Populate incoming attachments with width and height from message

This commit is contained in:
Moxie Marlinspike
2018-03-18 16:04:33 -07:00
parent 3c30db7edf
commit 9f8b4cf892
16 changed files with 111 additions and 28 deletions

View File

@@ -39,7 +39,8 @@ public class SystemProfileUtil {
if (!TextUtils.isEmpty(photoUri)) {
try {
return BitmapUtil.createScaledBytes(context, Uri.parse(photoUri), mediaConstraints);
BitmapUtil.ScaleResult result = BitmapUtil.createScaledBytes(context, Uri.parse(photoUri), mediaConstraints);
return result.getBitmap();
} catch (BitmapDecodingException e) {
Log.w(TAG, e);
}