PathUtil: Set default downloads to internal cache directory
This allows system to automatically free up space when required as well as users to delete it manually from the app info settings without wiping out aurora store specific configuration. Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -32,7 +32,7 @@ object PathUtil {
|
||||
private const val SPOOF = "SpoofConfigs"
|
||||
|
||||
fun getDownloadDirectory(context: Context): File {
|
||||
return File(context.filesDir, DOWNLOADS)
|
||||
return File(context.cacheDir, DOWNLOADS)
|
||||
}
|
||||
|
||||
private fun getPackageDirectory(context: Context, packageName: String): File {
|
||||
|
||||
Reference in New Issue
Block a user