mirror of
https://github.com/koreader/koreader
synced 2024-11-04 12:00:25 +00:00
parent
e3f1642308
commit
a1256f6758
@ -317,9 +317,17 @@ function DeviceListener:onRestart()
|
||||
self.ui.menu:exitOrRestart(function() UIManager:restartKOReader() end)
|
||||
end
|
||||
|
||||
DeviceListener.onRequestSuspend = UIManager.suspend
|
||||
DeviceListener.onRequestReboot = UIManager.reboot
|
||||
DeviceListener.onRequestPowerOff = UIManager.powerOff
|
||||
function DeviceListener:onRequestSuspend()
|
||||
UIManager:suspend()
|
||||
end
|
||||
|
||||
function DeviceListener:onRequestReboot()
|
||||
UIManager:reboot()
|
||||
end
|
||||
|
||||
function DeviceListener:onRequestPowerOff()
|
||||
UIManager:powerOff()
|
||||
end
|
||||
|
||||
function DeviceListener:onExit(callback)
|
||||
self.ui.menu:exitOrRestart(callback)
|
||||
|
Loading…
Reference in New Issue
Block a user