close menu before sharing text

This commit is contained in:
Martín Fernández authored and Frans de Jonge committed 2020-01-05 16:21:45 +01:00
1 parent 5ef329c19c
commit ffabb26aae
1 file changed
+4 -1
@@ -503,7 +503,10 @@ function ReaderHighlight:onShowHighlightMenu()
{
text = _("Share text"),
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,
},
})