mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
When saving dual-page, check folderPerManga pref (#1213)
This commit is contained in:
parent
407a90b775
commit
cb09718f21
1 changed files with 6 additions and 3 deletions
|
@ -762,11 +762,14 @@ class ReaderPresenter(
|
|||
notifier.onClear()
|
||||
|
||||
// Pictures directory.
|
||||
val destDir = File(
|
||||
Environment.getExternalStorageDirectory().absolutePath +
|
||||
val baseDir = Environment.getExternalStorageDirectory().absolutePath +
|
||||
File.separator + Environment.DIRECTORY_PICTURES +
|
||||
File.separator + context.getString(R.string.app_name)
|
||||
)
|
||||
val destDir = if (preferences.folderPerManga()) {
|
||||
File(baseDir + File.separator + DiskUtil.buildValidFilename(manga.title))
|
||||
} else {
|
||||
File(baseDir)
|
||||
}
|
||||
|
||||
try {
|
||||
val file = saveImages(firstPage, secondPage, isLTR, bg, destDir, manga)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue