|
|
@ -333,7 +333,10 @@ class BgTextConfigDialog : BaseDialogFragment(), FileChooserDialog.CallBack { |
|
|
|
val bgName = FileUtils.getName(config.bgStr()) |
|
|
|
val bgName = FileUtils.getName(config.bgStr()) |
|
|
|
val bgPath = FileUtils.getPath(requireContext().externalFilesDir, "bg", bgName) |
|
|
|
val bgPath = FileUtils.getPath(requireContext().externalFilesDir, "bg", bgName) |
|
|
|
if (!FileUtils.exist(bgPath)) { |
|
|
|
if (!FileUtils.exist(bgPath)) { |
|
|
|
FileUtils.getFile(configDir, bgName).copyTo(File(bgPath)) |
|
|
|
val bgFile = FileUtils.getFile(configDir, bgName) |
|
|
|
|
|
|
|
if (bgFile.exists()) { |
|
|
|
|
|
|
|
bgFile.copyTo(File(bgPath)) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
ReadBookConfig.durConfig = config |
|
|
|
ReadBookConfig.durConfig = config |
|
|
|