mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-08-16 20:29:13 +02:00
Always create nomedia file
This commit is contained in:
parent
5ac7f7057a
commit
dcfda61aba
@ -42,10 +42,12 @@ public class PreferencesHelper {
|
|||||||
if (getDownloadsDirectory().equals(defaultDownloadsDir.getAbsolutePath()) &&
|
if (getDownloadsDirectory().equals(defaultDownloadsDir.getAbsolutePath()) &&
|
||||||
!defaultDownloadsDir.exists()) {
|
!defaultDownloadsDir.exists()) {
|
||||||
defaultDownloadsDir.mkdirs();
|
defaultDownloadsDir.mkdirs();
|
||||||
try {
|
|
||||||
new File(defaultDownloadsDir, ".nomedia").createNewFile();
|
|
||||||
} catch (IOException e) { /* Ignore */ }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't display downloaded chapters in gallery apps creating a ".nomedia" file
|
||||||
|
try {
|
||||||
|
new File(getDownloadsDirectory(), ".nomedia").createNewFile();
|
||||||
|
} catch (IOException e) { /* Ignore */ }
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getKey(int keyResource) {
|
private String getKey(int keyResource) {
|
||||||
|
Loading…
Reference in New Issue
Block a user