mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-23 19:55:11 +00:00
remove dupe and more detailed throw
This commit is contained in:
parent
d0bdaef772
commit
042a6a72a1
2 changed files with 5 additions and 4 deletions
|
@ -57,12 +57,13 @@ class VancedDownloadService: Service() {
|
||||||
Build.SUPPORTED_ABIS.contains("arm64-v8a") -> "arm64_v8a"
|
Build.SUPPORTED_ABIS.contains("arm64-v8a") -> "arm64_v8a"
|
||||||
else -> "armeabi_v7a"
|
else -> "armeabi_v7a"
|
||||||
}
|
}
|
||||||
|
val themePath = "$installUrl/apks/v$vancedVer/$variant/Theme/"
|
||||||
val url =
|
val url =
|
||||||
when (type) {
|
when (type) {
|
||||||
"arch" -> "$installUrl/apks/v$vancedVer/$variant/Arch/split_config.$arch.apk"
|
"arch" -> "$installUrl/apks/v$vancedVer/$variant/Arch/split_config.$arch.apk"
|
||||||
"theme" -> "$installUrl/apks/v$vancedVer/$variant/Theme/$theme.apk"
|
"theme" -> "$themePath$theme.apk"
|
||||||
"stock" -> "$installUrl/apks/v$vancedVer/$variant/Theme/stock.apk"
|
"stock" -> "$themePath/stock.apk"
|
||||||
"dpi" -> "$installUrl/apks/v$vancedVer/$variant/Theme/dpi.apk"
|
"dpi" -> "$themePath/dpi.apk"
|
||||||
"lang" -> "$installUrl/apks/v$vancedVer/$variant/Language/split_config.${lang?.get(count)}.apk"
|
"lang" -> "$installUrl/apks/v$vancedVer/$variant/Language/split_config.${lang?.get(count)}.apk"
|
||||||
else -> throw NotImplementedError("This type of APK is NOT valid. What the hell did you even do?")
|
else -> throw NotImplementedError("This type of APK is NOT valid. What the hell did you even do?")
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ class RootSplitInstallerService: Service() {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw RuntimeException("Missing dark.apk or black.apk")
|
throw IllegalArgumentException("modApk Is Null Cause Missing (dark.apk/black.apk) In apks Folder")
|
||||||
}
|
}
|
||||||
//installSplitApkFiles(fileInfoList)
|
//installSplitApkFiles(fileInfoList)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue