mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
Merge pull request #2346 from mcginty/thumbnail-early-recycle
fix early recycling of thumbnail
This commit is contained in:
commit
778b8b490c
@ -92,9 +92,7 @@ public class MediaUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public InputStream toDataStream() {
|
public InputStream toDataStream() {
|
||||||
InputStream jpegStream = BitmapUtil.toCompressedJpeg(bitmap);
|
return BitmapUtil.toCompressedJpeg(bitmap);
|
||||||
bitmap.recycle();
|
|
||||||
return jpegStream;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user