PathUtil: Use existing method for app download dir

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-09-05 17:48:50 +05:30
parent 6dcc38d49b
commit 49a22ceff3

View File

@@ -72,7 +72,7 @@ object PathUtil {
val downloadDir = if (!sharedLibPackageName.isNullOrBlank()) {
getLibDownloadDir(context, packageName, versionCode, sharedLibPackageName)
} else {
File(getPackageDirectory(context, packageName), versionCode.toString())
getAppDownloadDir(context, packageName, versionCode)
}
return File(downloadDir, file.name)
}