Skip to content

Commit 1f5197c

Browse files
committed
fix APK files cannot be installed (#170)
1 parent 8dc15eb commit 1f5197c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/src/main/java/com/raival/compose/file/explorer/screen/main/tab/files/holder/LocalFileHolder.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ class LocalFileHolder(val file: File) : ContentHolder() {
271271
}
272272

273273
if (FileMimeType.supportedArchiveFileType.contains(extension)) {
274+
if (isApk() && skipSupportedExtensions) return false
274275
globalClass.zipManager.openArchive(this)
275276
return true
276277
}

app/src/main/java/com/raival/compose/file/explorer/screen/main/tab/files/ui/dialog/ApkPreviewDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ fun ApkPreviewDialog(
327327
context,
328328
anonymous = false,
329329
skipSupportedExtensions = true,
330-
customMimeType = null
330+
customMimeType = "application/vnd.android.package-archive"
331331
)
332332
onDismissRequest()
333333
},

0 commit comments

Comments
 (0)