close menu before sharing text

This commit is contained in:
Martín Fernández
2020-01-05 15:52:28 +01:00
committed by Frans de Jonge
parent 5ef329c19c
commit ffabb26aae

View File

@@ -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,
},
})