mirror of
https://github.com/olgamiller/SSTVEncoder2.git
synced 2026-04-05 22:35:39 +00:00
Set empty bitmap if image could not be loaded
This commit is contained in:
parent
6cc4faf3c4
commit
38423f76b9
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue