mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-18 23:39:16 +01:00
Fallback covers' external directory
This commit is contained in:
parent
cb357b0a16
commit
e3259f39f1
@ -20,7 +20,8 @@ class CoverCache(private val context: Context) {
|
|||||||
/**
|
/**
|
||||||
* Cache directory used for cache management.
|
* 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.
|
* Returns the cover from cache.
|
||||||
|
Loading…
Reference in New Issue
Block a user