fix: Don't ask for all files access

This commit is contained in:
Ahmad Ansori Palembani 2024-05-28 03:25:49 +07:00 committed by GitHub
parent f870825f29
commit b20d4a298a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -335,6 +335,7 @@ class Downloader(
notifier.onError(context.getString(R.string.couldnt_download_low_space), chapName)
return
}
/*
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R &&
!Environment.isExternalStorageManager()
) {
@ -351,6 +352,7 @@ class Downloader(
)
return
}
*/
val chapterDirname = provider.getChapterDirName(download.chapter)
val tmpDir = mangaDir.createDirectory(chapterDirname + TMP_DIR_SUFFIX)!!