mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 11:42:15 -05:00
close input stream
This commit is contained in:
parent
7f0efa089f
commit
fa9cbeb746
@ -109,6 +109,7 @@ public class FileBackend {
|
|||||||
BitmapFactory.Options options = new BitmapFactory.Options();
|
BitmapFactory.Options options = new BitmapFactory.Options();
|
||||||
options.inSampleSize = 2;
|
options.inSampleSize = 2;
|
||||||
originalBitmap = BitmapFactory.decodeStream(is, null, options);
|
originalBitmap = BitmapFactory.decodeStream(is, null, options);
|
||||||
|
is.close();
|
||||||
}
|
}
|
||||||
if (originalBitmap == null) {
|
if (originalBitmap == null) {
|
||||||
throw new ImageCopyException(R.string.error_not_an_image_file);
|
throw new ImageCopyException(R.string.error_not_an_image_file);
|
||||||
|
Loading…
Reference in New Issue
Block a user