add .nomedia for Android

This commit is contained in:
kodjodevf 2023-04-17 15:30:35 +01:00
parent e57ed90346
commit 14aabfc5f3

View file

@ -90,6 +90,12 @@ class _ChapterPageDownloadState extends ConsumerState<ChapterPageDownload>
if (!(await path1.exists())) {
path1.create();
}
if (Platform.isAndroid) {
if (!(await File("${path1.path}" ".nomedia").exists())) {
File("${path1.path}" ".nomedia").create();
}
}
if (!(await path2.exists())) {
path2.create();
}