mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-09 13:39:52 +00:00
fix early recycling of thumbnail
// FREEBIE
This commit is contained in:
@@ -92,9 +92,7 @@ public class MediaUtil {
|
||||
}
|
||||
|
||||
public InputStream toDataStream() {
|
||||
InputStream jpegStream = BitmapUtil.toCompressedJpeg(bitmap);
|
||||
bitmap.recycle();
|
||||
return jpegStream;
|
||||
return BitmapUtil.toCompressedJpeg(bitmap);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user