add copy image
This commit is contained in:
1 parent
98d401f9c3
commit
1a86eef52c
6 files changed
+36
-1
No files matched your search
@@ -377,7 +377,7 @@ class ReaderActivity : EhActivity() {
|
||||
|
||||
}
|
||||
|
||||
private fun copyImage(page: Int) {
|
||||
fun copyImage(page: Int) {
|
||||
if (null == mGalleryProvider) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ class ReaderPageSheet(
|
||||
binding = ReaderPageSheetBinding.inflate(activity.layoutInflater, null, false)
|
||||
|
||||
binding.share.setOnClickListener { share() }
|
||||
binding.copy.setOnClickListener { copy() }
|
||||
binding.save.setOnClickListener { save() }
|
||||
binding.saveTo.setOnClickListener { saveTo() }
|
||||
|
||||
@@ -34,6 +35,14 @@ class ReaderPageSheet(
|
||||
dismiss()
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy the image of this page with external apps.
|
||||
*/
|
||||
private fun copy() {
|
||||
activity.copyImage(page.index)
|
||||
dismiss()
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves the image of this page on external storage.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user