[Android, UX] Add Device:openLink() implementation (#4824)

Fixes https://github.com/koreader/koreader/issues/4821

Same as https://github.com/koreader/koreader/pull/4822

Thanks to @pazos who implemented the Android backend, see https://github.com/koreader/android-luajit-launcher/pull/133
pull/4828/head
Frans de Jonge 5 years ago committed by GitHub
parent b1ed2838c8
commit 2f65fb94ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,6 +27,10 @@ local Device = Generic:new{
display_dpi = android.lib.AConfiguration_getDensity(android.app.config),
hasClipboard = yes,
hasOTAUpdates = canUpdateApk,
openLink = function(self, link)
if not link or type(link) ~= "string" then return end
return android.openLink(link) == 0
end,
--[[
Disable jit on some modules on android to make koreader on Android more stable.

@ -1 +1 @@
Subproject commit e0809630d02049aee93b2bcc9edc55839ac2c0ef
Subproject commit 98786ee3f3b062e16d843bb04c0999fedfa5d059
Loading…
Cancel
Save