|
|
@ -156,13 +156,13 @@ class ReadRssActivity : VMBaseActivity<ActivityRssReadBinding, ReadRssViewModel> |
|
|
|
private fun saveImage() { |
|
|
|
private fun saveImage() { |
|
|
|
val path = ACache.get(this@ReadRssActivity).getAsString(imagePathKey) |
|
|
|
val path = ACache.get(this@ReadRssActivity).getAsString(imagePathKey) |
|
|
|
if (path.isNullOrEmpty()) { |
|
|
|
if (path.isNullOrEmpty()) { |
|
|
|
selectExportFolder() |
|
|
|
selectSaveFolder() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
viewModel.saveImage(webPic, path) |
|
|
|
viewModel.saveImage(webPic, path) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun selectExportFolder() { |
|
|
|
private fun selectSaveFolder() { |
|
|
|
val default = arrayListOf<String>() |
|
|
|
val default = arrayListOf<String>() |
|
|
|
val path = ACache.get(this@ReadRssActivity).getAsString(imagePathKey) |
|
|
|
val path = ACache.get(this@ReadRssActivity).getAsString(imagePathKey) |
|
|
|
if (!path.isNullOrEmpty()) { |
|
|
|
if (!path.isNullOrEmpty()) { |
|
|
|