mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
android: update doShareText signature
This commit is contained in:
committed by
Frans de Jonge
parent
8ac8db69ad
commit
d644b1a851
@@ -172,14 +172,15 @@ function ReaderHighlight:init()
|
||||
|
||||
-- Android devices
|
||||
if Device:canShareText() then
|
||||
local action = _("Share Text")
|
||||
self:addToHighlightDialog("08_share_text", function(_self)
|
||||
return {
|
||||
text = _("Share Text"),
|
||||
text = action,
|
||||
callback = function()
|
||||
local text = cleanupSelectedText(_self.selected_text.text)
|
||||
-- call self:onClose() before calling the android framework
|
||||
_self:onClose()
|
||||
Device.doShareText(text)
|
||||
Device:doShareText(text, action)
|
||||
end,
|
||||
}
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user