Commit 43a5f119 authored by wanglei's avatar wanglei

...

parent d5910c84
...@@ -129,7 +129,8 @@ class PdfPresenter( ...@@ -129,7 +129,8 @@ class PdfPresenter(
fun createNewPdfPath(name: String): String { fun createNewPdfPath(name: String): String {
val appDir = createAppDocumentDir() val appDir = createAppDocumentDir()
val mergeFile = File(appDir, "$name.pdf") val child = if (name.endsWith(".pdf")) name else "$name.pdf"
val mergeFile = File(appDir, child)
mergeFile.createNewFile() mergeFile.createNewFile()
LogEx.logDebug(TAG, "mergeFile ${mergeFile.absolutePath}") LogEx.logDebug(TAG, "mergeFile ${mergeFile.absolutePath}")
return mergeFile.absolutePath return mergeFile.absolutePath
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment