PathUtil: Use existing method for app download dir
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -72,7 +72,7 @@ object PathUtil {
|
|||||||
val downloadDir = if (!sharedLibPackageName.isNullOrBlank()) {
|
val downloadDir = if (!sharedLibPackageName.isNullOrBlank()) {
|
||||||
getLibDownloadDir(context, packageName, versionCode, sharedLibPackageName)
|
getLibDownloadDir(context, packageName, versionCode, sharedLibPackageName)
|
||||||
} else {
|
} else {
|
||||||
File(getPackageDirectory(context, packageName), versionCode.toString())
|
getAppDownloadDir(context, packageName, versionCode)
|
||||||
}
|
}
|
||||||
return File(downloadDir, file.name)
|
return File(downloadDir, file.name)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user