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:
Hans-Werner Hilse
2014-06-02 17:25:11 +02:00
parent a89526630c
commit 0244ba7053

View File

@@ -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