mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-20 01:59:43 +02:00
Add unified storage location setting
Currently only using it as a replacement for the downloads location.
This commit is contained in:
@@ -7,15 +7,14 @@ import tachiyomi.core.i18n.stringResource
|
||||
import tachiyomi.i18n.MR
|
||||
import java.io.File
|
||||
|
||||
class AndroidDownloadFolderProvider(
|
||||
val context: Context,
|
||||
class AndroidStorageFolderProvider(
|
||||
private val context: Context,
|
||||
) : FolderProvider {
|
||||
|
||||
override fun directory(): File {
|
||||
return File(
|
||||
Environment.getExternalStorageDirectory().absolutePath + File.separator +
|
||||
context.stringResource(MR.strings.app_name),
|
||||
"downloads",
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user