From 9ba66ac382ab8778978d075d0de15b73617de49b Mon Sep 17 00:00:00 2001 From: mergen3107 <6279855+mergen3107@users.noreply.github.com> Date: Sun, 24 Dec 2023 11:17:46 -0500 Subject: [PATCH] Exporter - fix android shares (#11259) --- plugins/exporter.koplugin/base.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/exporter.koplugin/base.lua b/plugins/exporter.koplugin/base.lua index 2ca2710d8..c3be98a82 100644 --- a/plugins/exporter.koplugin/base.lua +++ b/plugins/exporter.koplugin/base.lua @@ -151,10 +151,8 @@ end Shares text with other apps ]] function BaseExporter:shareText(text, title) - local msg_reason = _("Share") .. " " .. self.name - local msg_text = type(text) == "string" and text - local msg_title = type(title) == "string" and title - Device:doShareText(msg_text, msg_reason, msg_title, self.mimetype) + local reason = _("Share") .. " " .. self.name + Device:doShareText(text, reason, title, self.mimetype) end return BaseExporter