|
|
@ -57,6 +57,11 @@ function PocketBook:init()
|
|
|
|
elseif self.isInBackGround and ev.type == EVT_FOREGROUND then
|
|
|
|
elseif self.isInBackGround and ev.type == EVT_FOREGROUND then
|
|
|
|
self.isInBackGround = false
|
|
|
|
self.isInBackGround = false
|
|
|
|
self:onPowerEvent("Power")
|
|
|
|
self:onPowerEvent("Power")
|
|
|
|
|
|
|
|
elseif ev.type == EVT_EXIT then
|
|
|
|
|
|
|
|
-- auto shutdown event from inkview framework, gracefully close
|
|
|
|
|
|
|
|
-- everything and let the framework shutdown the device
|
|
|
|
|
|
|
|
require("ui/uimanager"):broadcastEvent(
|
|
|
|
|
|
|
|
require("ui/event"):new("Close"))
|
|
|
|
elseif not self.isInBackGround and ev.type == EVT_FOREGROUND then
|
|
|
|
elseif not self.isInBackGround and ev.type == EVT_FOREGROUND then
|
|
|
|
self.screen:refreshPartial()
|
|
|
|
self.screen:refreshPartial()
|
|
|
|
end
|
|
|
|
end
|
|
|
|