Commit eb1acfec authored by Narinder Rana's avatar Narinder Rana
Browse files

Hide Apk download folder

parent 48ba9036
Pipeline #67626 passed with stage
in 4 minutes and 5 seconds
......@@ -69,7 +69,7 @@ class ApplicationInfo(private val packageName: String) {
fun getApkFile(context: Context, data: BasicData): File {
return File(context.getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS),
return File(context.getExternalFilesDir("."+Environment.DIRECTORY_DOWNLOADS),
getApkFilename(data))
}
......@@ -79,7 +79,7 @@ class ApplicationInfo(private val packageName: String) {
fun getxApkFile(context: Context, data: BasicData): File {
return File(context.getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS),
return File(context.getExternalFilesDir("."+Environment.DIRECTORY_DOWNLOADS),
getxApkFilename(data))
}
......
......@@ -87,7 +87,7 @@ class Downloader(private val applicationInfo: ApplicationInfo, private val fullD
setDescription(context.getString(R.string.download_notification_description))
setDestinationInExternalFilesDir(
context,
Environment.DIRECTORY_DOWNLOADS,
"."+Environment.DIRECTORY_DOWNLOADS,
applicationInfo.getApkOrXapkFileName(fullData,fullData.basicData))
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment