Skip to content

Commit 1d00373

Browse files
samuel-rlball-hayden
authored andcommitted
fix(android): use mimeType instead of type
1 parent fe4139d commit 1d00373

File tree

1 file changed

+1
-1
lines changed
  • react-native-mcu-manager/android/src/main/java/uk/co/playerdata/reactnativemcumanager

1 file changed

+1
-1
lines changed

react-native-mcu-manager/android/src/main/java/uk/co/playerdata/reactnativemcumanager/DeviceUpgrade.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class DeviceUpgrade(
7676
val mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(fileExtension)
7777
val binData = uriToByteArray(updateBundleUri) ?: throw IOException("Failed to read update file")
7878

79-
if (type == "application/zip") {
79+
if (mimeType == "application/zip") {
8080
return extractImagesFromZipFile(binData)
8181
} else {
8282
return extractImagesFromBinFile(binData)

0 commit comments

Comments
 (0)