mirror of
https://github.com/olgamiller/SSTVEncoder2.git
synced 2025-12-06 06:52:01 +01:00
Set empty bitmap if image could not be loaded
This commit is contained in:
parent
6cc4faf3c4
commit
38423f76b9
|
|
@ -121,12 +121,12 @@ public class MainActivity extends AppCompatActivity {
|
|||
showFileNotLoadedMessage(ex, verbose);
|
||||
}
|
||||
}
|
||||
if (stream == null) {
|
||||
if (stream == null || !loadImage(stream, resolver, uri)) {
|
||||
mCropView.setNoBitmap();
|
||||
mSettings.setImageUri(null);
|
||||
return false;
|
||||
}
|
||||
return loadImage(stream, resolver, uri);
|
||||
return true;
|
||||
}
|
||||
|
||||
private boolean loadImage(InputStream stream, ContentResolver resolver, Uri uri) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue