Skip to content

Commit

Permalink
release 2.2.1
Browse files Browse the repository at this point in the history
Signed-off-by: androidacy-user <[email protected]>
  • Loading branch information
androidacy-user committed Jun 29, 2023
1 parent 5e30861 commit 472cbdb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class InstallerActivity : FoxActivity() {
prgInd?.setProgressCompat(progress, true)
}
}
} else readSU(moduleCache!!)
} else rawModule = readSU(moduleCache!!)
runOnUiThread {
prgInd?.visibility = View.GONE
prgInd?.isIndeterminate = true
Expand Down
9 changes: 4 additions & 5 deletions app/src/main/kotlin/com/fox2code/mmm/utils/IntentHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ enum class IntentHelper {;
if ((destination == null) || (destination.parentFile.also {
destinationFolder = it
} == null) || (!destinationFolder?.mkdirs()!! && !destinationFolder!!.isDirectory)) {
Timber.w("dest null.for open")
callback.onReceived(destination, null, RESPONSE_ERROR)
return
}
Expand All @@ -387,10 +388,8 @@ enum class IntentHelper {;
).toBundle()
compatActivity.startActivityForResult(intent, param) { result: Int, data: Intent? ->
val uri = data?.data
if (uri == null || result == Activity.RESULT_CANCELED && ContentResolver.SCHEME_FILE == uri.scheme && uri.path != null && (uri.path!!.startsWith(
"/sdcard/"
) || uri.path!!.startsWith("/data/")) || ContentResolver.SCHEME_ANDROID_RESOURCE != uri.scheme
) {
if (uri == null || result == Activity.RESULT_CANCELED) {
Timber.d("invalid uri recieved")
callback.onReceived(destination, null, RESPONSE_ERROR)
return@startActivityForResult
}
Expand Down Expand Up @@ -467,4 +466,4 @@ enum class IntentHelper {;
})
}
}
}
}
6 changes: 3 additions & 3 deletions app/src/main/kotlin/com/fox2code/mmm/utils/io/Files.kt
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ enum class Files {
val zipOutputStream = ZipOutputStream(outputStream)
var nRead: Int
val data = ByteArray(16384)
var zipEntry: ZipEntry
var zipEntry: ZipEntry?
while (zipInputStream.nextEntry.also { zipEntry = it } != null) {
val name = zipEntry.name
val name = zipEntry!!.name
val i = name.indexOf('/', 1)
if (i == -1) continue
val newName = name.substring(i + 1)
Expand Down Expand Up @@ -304,4 +304,4 @@ enum class Files {
}
}
}
}
}

0 comments on commit 472cbdb

Please sign in to comment.