[feat] Add Android clipboard definition (#3479)

References https://github.com/koreader/koreader/issues/3441
pull/3682/head
Frans de Jonge 6 years ago committed by GitHub
parent 78284e13d9
commit aadb81eb48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,6 +14,7 @@ local Device = Generic:new{
hasFrontlight = yes,
firmware_rev = "none",
display_dpi = android.lib.AConfiguration_getDensity(android.app.config),
hasClipboard = yes,
hasColorScreen = yes,
}
@ -33,6 +34,15 @@ function Device:init()
this.device.screen:refreshFull()
end
end,
hasClipboardText = function()
return android.hasClipboardText()
end,
getClipboardText = function()
return android.getClipboardText()
end,
setClipboardText = function(text)
return android.setClipboardText(text)
end,
}
-- check if we have a keyboard

@ -1 +1 @@
Subproject commit 41dd311483abffe5f3738224b7d93b5b2b5e9cd2
Subproject commit e303987017558fb37ea4da6889fd1ab6315283cf
Loading…
Cancel
Save