mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
reflect changes in koreader/android-luajit-launcher#62 (#3254)
This commit is contained in:
@@ -13,7 +13,7 @@ local Device = Generic:new{
|
||||
isAndroid = yes,
|
||||
hasFrontlight = yes,
|
||||
firmware_rev = "none",
|
||||
display_dpi = ffi.C.AConfiguration_getDensity(android.app.config),
|
||||
display_dpi = android.lib.AConfiguration_getDensity(android.app.config),
|
||||
}
|
||||
|
||||
function Device:init()
|
||||
@@ -35,13 +35,13 @@ function Device:init()
|
||||
}
|
||||
|
||||
-- check if we have a keyboard
|
||||
if ffi.C.AConfiguration_getKeyboard(android.app.config)
|
||||
if android.lib.AConfiguration_getKeyboard(android.app.config)
|
||||
== ffi.C.ACONFIGURATION_KEYBOARD_QWERTY
|
||||
then
|
||||
self.hasKeyboard = yes
|
||||
end
|
||||
-- check if we have a touchscreen
|
||||
if ffi.C.AConfiguration_getTouchscreen(android.app.config)
|
||||
if android.lib.AConfiguration_getTouchscreen(android.app.config)
|
||||
~= ffi.C.ACONFIGURATION_TOUCHSCREEN_NOTOUCH
|
||||
then
|
||||
self.isTouchDevice = yes
|
||||
|
||||
Reference in New Issue
Block a user