|
@@ -89,7 +89,8 @@ public class MediaStoreHelper {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (mediaContentUri == null) {
|
|
if (mediaContentUri == null) {
|
|
|
- throw new IllegalStateException("Failed to create new media item.");
|
|
|
|
|
|
|
+ saveToExternalStorage(targetMedia, inputStream, fileName);
|
|
|
|
|
+ return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// "w" for write.
|
|
// "w" for write.
|