mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Fallback covers' external directory
This commit is contained in:
		| @@ -20,7 +20,8 @@ class CoverCache(private val context: Context) { | ||||
|     /** | ||||
|      * Cache directory used for cache management. | ||||
|      */ | ||||
|     private val cacheDir = context.getExternalFilesDir("covers") | ||||
|     private val cacheDir = context.getExternalFilesDir("covers") ?: | ||||
|             File(context.filesDir, "covers").also { it.mkdirs() } | ||||
|  | ||||
|     /** | ||||
|      * Returns the cover from cache. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user