android: disable exit menu

pull/4501/head
Martín Fernández 5 years ago committed by Frans de Jonge
parent e592468f38
commit 23f1597246

@ -291,6 +291,11 @@ function FileManagerMenu:setUpdateItemTable()
self:exitOrRestart(function() UIManager:restartKOReader() end) self:exitOrRestart(function() UIManager:restartKOReader() end)
end, end,
} }
if Device:isAndroid() then
self.menu_items.exit_menu = self.menu_items.exit
self.menu_items.exit = nil
self.menu_items.restart_koreader = nil
end
if not Device:isTouchDevice() then if not Device:isTouchDevice() then
--add a shortcut on non touch-device --add a shortcut on non touch-device
--because this menu is not accessible otherwise --because this menu is not accessible otherwise

@ -185,6 +185,11 @@ function ReaderMenu:setUpdateItemTable()
self:exitOrRestart(function() UIManager:restartKOReader() end) self:exitOrRestart(function() UIManager:restartKOReader() end)
end, end,
} }
if Device:isAndroid() then
self.menu_items.exit_menu = self.menu_items.exit
self.menu_items.exit = nil
self.menu_items.restart_koreader = nil
end
local getPreviousFile = function() local getPreviousFile = function()
local previous_file = nil local previous_file = nil

@ -1,3 +1,5 @@
local Device = require("device")
local order = { local order = {
["KOMenu:menu_buttons"] = { ["KOMenu:menu_buttons"] = {
"filemanager_settings", "filemanager_settings",
@ -119,4 +121,8 @@ local order = {
} }
} }
if Device:isAndroid() then
order.exit_menu = nil
end
return order return order

@ -1,3 +1,5 @@
local Device = require("device")
local order = { local order = {
["KOMenu:menu_buttons"] = { ["KOMenu:menu_buttons"] = {
"navi", "navi",
@ -142,4 +144,8 @@ local order = {
} }
} }
if Device:isAndroid() then
order.exit_menu = nil
end
return order return order

Loading…
Cancel
Save