close menu before sharing text

pull/5749/head
Martín Fernández 4 years ago committed by Frans de Jonge
parent 5ef329c19c
commit ffabb26aae

@ -503,7 +503,10 @@ function ReaderHighlight:onShowHighlightMenu()
{ {
text = _("Share text"), text = _("Share text"),
callback = function() callback = function()
Device.doShareText(self.selected_text.text) local text = self.selected_text.text
-- call self:onClose() before calling the android framework
self:onClose()
Device.doShareText(text)
end, end,
}, },
}) })

Loading…
Cancel
Save