mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-25 15:48:36 +00:00
Populate incoming attachments with width and height from message
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user