mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Claim that Android devices do not have a keyboard
For now, we can probably live better with the assumption that Android devices do not have keyboards. That should be replaced by an actual check, though.
This commit is contained in:
@@ -100,11 +100,13 @@ function Device:isKobo()
|
||||
return string.find(self:getModel() or "", "Kobo_") == 1
|
||||
end
|
||||
|
||||
Device.isAndroid = util.isAndroid
|
||||
|
||||
function Device:hasNoKeyboard()
|
||||
if self.has_no_keyboard ~= nil then return self.has_no_keyboard end
|
||||
local model = self:getModel()
|
||||
self.has_no_keyboard = (model == "KindlePaperWhite") or (model == "KindlePaperWhite2")
|
||||
or (model == "KindleTouch") or self:isKobo()
|
||||
or (model == "KindleTouch") or self:isKobo() or self:isAndroid()
|
||||
return self.has_no_keyboard
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user