mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Always create nomedia file
This commit is contained in:
		| @@ -42,10 +42,12 @@ public class PreferencesHelper { | ||||
|         if (getDownloadsDirectory().equals(defaultDownloadsDir.getAbsolutePath()) && | ||||
|                 !defaultDownloadsDir.exists()) { | ||||
|             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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user