mirror of
https://github.com/status-im/react-native-camera-roll.git
synced 2026-08-29 04:11:10 +00:00
fix(android): save video error (#465)
Co-authored-by: Arkady Magomedov <amagomedov@microsoft.com>
This commit is contained in:
co-authored by
Arkady Magomedov
parent
bb60f015e1
commit
65f20b0ff6
@@ -146,7 +146,7 @@ public class CameraRollModule extends ReactContextBaseJavaModule {
|
||||
FileInputStream input = null;
|
||||
OutputStream output = null;
|
||||
|
||||
String mimeType = Utils.getMimeType(mUri.getPath());
|
||||
String mimeType = Utils.getMimeType(mUri.toString());
|
||||
Boolean isVideo = mimeType != null && mimeType.contains("video");
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user