2014-11-21 14:41:14 +00:00
|
|
|
local Device = require("device")
|
|
|
|
local InfoMessage = require("ui/widget/infomessage")
|
|
|
|
local UIManager = require("ui/uimanager")
|
|
|
|
local _ = require("gettext")
|
|
|
|
|
|
|
|
local common_info = {}
|
|
|
|
|
2016-03-13 15:42:58 +00:00
|
|
|
if Device:isKindle() or Device:isKobo() or Device:isPocketBook()
|
|
|
|
or Device:isAndroid() then
|
2014-11-21 14:41:14 +00:00
|
|
|
local OTAManager = require("ui/otamanager")
|
2017-03-03 06:41:10 +00:00
|
|
|
common_info.ota_update = OTAManager:getOTAMenuTable()
|
2014-11-21 14:41:14 +00:00
|
|
|
end
|
2017-03-03 06:41:10 +00:00
|
|
|
common_info.version = {
|
2014-11-21 14:41:14 +00:00
|
|
|
text = _("Version"),
|
|
|
|
callback = function()
|
|
|
|
UIManager:show(InfoMessage:new{
|
|
|
|
text = io.open("git-rev", "r"):read(),
|
|
|
|
})
|
|
|
|
end
|
2017-02-28 21:46:32 +00:00
|
|
|
}
|
2017-03-03 06:41:10 +00:00
|
|
|
common_info.help = {
|
2014-11-21 14:41:14 +00:00
|
|
|
text = _("Help"),
|
|
|
|
callback = function()
|
|
|
|
UIManager:show(InfoMessage:new{
|
|
|
|
text = _("Please report bugs to \nhttps://github.com/koreader/koreader/issues"),
|
|
|
|
})
|
|
|
|
end
|
2017-02-28 21:46:32 +00:00
|
|
|
}
|
2014-11-21 14:41:14 +00:00
|
|
|
|
|
|
|
return common_info
|