fix windows path

This commit is contained in:
Aria Moradi 2021-04-04 00:52:58 +04:30
parent e0e474dfce
commit c8a8ce07e2

View File

@ -68,7 +68,7 @@ object Extension {
suspend fun installAPK(fetcher: suspend () -> String): Int {
val apkFilePath = fetcher()
val apkName = Uri.parse(apkFilePath).lastPathSegment!!
val apkName = File(apkFilePath).name
// check if we don't have the extension already installed
// if it's installed and we want to update, it first has to be uninstalled