From 0244ba70532d10e064584b0d5063c0e9b8a0ff19 Mon Sep 17 00:00:00 2001 From: Hans-Werner Hilse Date: Mon, 2 Jun 2014 17:25:11 +0200 Subject: [PATCH] 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. --- frontend/ui/device.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/ui/device.lua b/frontend/ui/device.lua index 219259982..d4577e21c 100644 --- a/frontend/ui/device.lua +++ b/frontend/ui/device.lua @@ -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