mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 11:12:40 +00:00
fix early recycling of thumbnail
// FREEBIE
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user