|
|
@ -193,6 +193,15 @@ class CacheActivity : VMBaseActivity<ActivityCacheBookBinding, CacheViewModel>() |
|
|
|
|
|
|
|
|
|
|
|
override fun export(position: Int) { |
|
|
|
override fun export(position: Int) { |
|
|
|
exportPosition = position |
|
|
|
exportPosition = position |
|
|
|
|
|
|
|
val path = ACache.get(this@CacheActivity).getAsString(exportBookPathKey) |
|
|
|
|
|
|
|
if (path.isNullOrEmpty()) { |
|
|
|
|
|
|
|
selectExportFolder() |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
startExport(path) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private fun selectExportFolder() { |
|
|
|
val default = arrayListOf<String>() |
|
|
|
val default = arrayListOf<String>() |
|
|
|
val path = ACache.get(this@CacheActivity).getAsString(exportBookPathKey) |
|
|
|
val path = ACache.get(this@CacheActivity).getAsString(exportBookPathKey) |
|
|
|
if (!path.isNullOrEmpty()) { |
|
|
|
if (!path.isNullOrEmpty()) { |
|
|
|