Skip to content

Commit

Permalink
ignore apk file
Browse files Browse the repository at this point in the history
  • Loading branch information
lings03 committed Oct 29, 2024
1 parent e4f41b6 commit 938389d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/main/java/top/laoxin/modmanager/tools/ArchiveUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,12 @@ object ArchiveUtil {
* 判断压缩包类型
*/
private fun getFileType(file: File): FileType {

// 判断是否为apk文件,无视其直接返回
if (file.extension.equals("apk", ignoreCase = true)) {
return FileType.UNKNOWN
}

var inputStream: FileInputStream? = null
try {
inputStream = FileInputStream(file)
Expand Down

0 comments on commit 938389d

Please sign in to comment.