diff --git a/frontend/apps/reader/modules/readerhighlight.lua b/frontend/apps/reader/modules/readerhighlight.lua index 5f439ee69..4f200ebab 100644 --- a/frontend/apps/reader/modules/readerhighlight.lua +++ b/frontend/apps/reader/modules/readerhighlight.lua @@ -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) diff --git a/frontend/device/android/device.lua b/frontend/device/android/device.lua index 3bd181b20..ee8e75ad7 100644 --- a/frontend/device/android/device.lua +++ b/frontend/device/android/device.lua @@ -97,7 +97,9 @@ local Device = Generic:new{ hasExternalSD = function() return android.getExternalSdPath() end, importFile = function(path) android.importFile(path) end, canShareText = yes, - doShareText = function(text) android.sendText(text) end, + doShareText = function(self, text, reason, title, mimetype) + android.sendText(text, reason, title, mimetype) + end, canExternalDictLookup = yes, getExternalDictLookupList = function() return external.dicts end,