fixed removal of predownloaded files 2 + permission

This commit is contained in:
LagradOst 2023-08-24 18:13:42 +02:00
parent 39ff6ef8ef
commit c92ac3e8b3
2 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,7 @@
<uses-permission android:name="android.permission.UPDATE_PACKAGES_WITHOUT_USER_ACTION" /> <!-- Used for updates without prompt -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> <!-- Used for update service -->
<permission android:name="android.permission.QUERY_ALL_PACKAGES" /> <!-- Required for getting arbitrary Aniyomi packages -->
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" /> <!-- Required for getting arbitrary Aniyomi packages -->
<!-- Fixes android tv fuckery -->
<uses-feature
android:name="android.hardware.touchscreen"

View File

@ -129,6 +129,9 @@ class MediaFile(
// VideoDownloadManager.sanitizeFilename(path.replace(File.separator, ""))
// in case of duplicate path, aka Download -> Download
if(relativePath == path) return this
val newPath =
sanitizedAbsolutePath + path + if (folder) File.separator else ""