forked from Ivasoft/mattermost-mobile
Fix Android sharing files without extension (#1646)
This commit is contained in:
@@ -126,7 +126,7 @@ public class ShareModule extends ReactContextBaseJavaModule {
|
||||
map = Arguments.createMap();
|
||||
text = "file://" + filePath;
|
||||
map.putString("value", text);
|
||||
map.putString("type", RealPathUtil.getMimeType(filePath));
|
||||
map.putString("type", RealPathUtil.getMimeTypeFromUri(currentActivity, uri));
|
||||
items.pushMap(map);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user