mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-26 13:12:59 +00:00
fixed nonroot music installer
This commit is contained in:
parent
1ccb043918
commit
a8d35790db
2 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ object MusicDownloader {
|
|||
if (variant == "root")
|
||||
installMusicRoot(context)
|
||||
else
|
||||
install("${context.getExternalFilesDir("music/$variant")}/music.apk", context)
|
||||
install("${context.getExternalFilesDir("music/nonroot")}/nonroot.apk", context)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ object PackageHelper {
|
|||
}
|
||||
|
||||
fun musicApkExists(context: Context): Boolean {
|
||||
val apkPath = File(context.getExternalFilesDir("music/nonroot")?.path, "music.apk")
|
||||
val apkPath = File(context.getExternalFilesDir("music/nonroot")?.path, "nonroot.apk")
|
||||
if (apkPath.exists()) {
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue