From 361b5ae800902a9bc622e4195c02af1432c3da2a Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 30 Jan 2020 11:18:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/importbook/ImportBookActivity.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/importbook/ImportBookActivity.kt b/app/src/main/java/io/legado/app/ui/importbook/ImportBookActivity.kt index 191dbc10a..16ea5ded3 100644 --- a/app/src/main/java/io/legado/app/ui/importbook/ImportBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/importbook/ImportBookActivity.kt @@ -59,7 +59,11 @@ class ImportBookActivity : VMBaseActivity(R.layout.activity private fun getPath(): String { rootDoc?.let { - return it.name + File.separator + subDirs.joinToString(File.separator) + var path = it.name + File.separator + subDirs.joinToString(File.separator) + if (!path.endsWith(File.separator)) { + path += File.separator + } + return path } return "" }