We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe4139d commit 1d00373Copy full SHA for 1d00373
react-native-mcu-manager/android/src/main/java/uk/co/playerdata/reactnativemcumanager/DeviceUpgrade.kt
@@ -76,7 +76,7 @@ class DeviceUpgrade(
76
val mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(fileExtension)
77
val binData = uriToByteArray(updateBundleUri) ?: throw IOException("Failed to read update file")
78
79
- if (type == "application/zip") {
+ if (mimeType == "application/zip") {
80
return extractImagesFromZipFile(binData)
81
} else {
82
return extractImagesFromBinFile(binData)
0 commit comments