|
|
@ -43,6 +43,7 @@ class ReadRssActivity : VMBaseActivity<ActivityRssReadBinding, ReadRssViewModel> |
|
|
|
private var customWebViewCallback: WebChromeClient.CustomViewCallback? = null |
|
|
|
private var customWebViewCallback: WebChromeClient.CustomViewCallback? = null |
|
|
|
private var webPic: String? = null |
|
|
|
private var webPic: String? = null |
|
|
|
private val saveImage = registerForActivityResult(FilePicker()) { |
|
|
|
private val saveImage = registerForActivityResult(FilePicker()) { |
|
|
|
|
|
|
|
it ?: return@registerForActivityResult |
|
|
|
ACache.get(this).put(imagePathKey, it.toString()) |
|
|
|
ACache.get(this).put(imagePathKey, it.toString()) |
|
|
|
viewModel.saveImage(webPic, it.toString()) |
|
|
|
viewModel.saveImage(webPic, it.toString()) |
|
|
|
} |
|
|
|
} |
|
|
|