mirror of
https://github.com/oxen-io/session-android.git
synced 2025-03-16 06:20:54 +00:00
fix early recycling of thumbnail
// FREEBIE
This commit is contained in:
parent
18961e6369
commit
bade52d748
@ -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