update battery state on device resume

This commit is contained in:
Qingping Hou
2014-01-16 18:34:46 -05:00
parent f7b47a3634
commit 21af7b6a9f
2 changed files with 14 additions and 4 deletions

View File

@@ -216,6 +216,14 @@ function ReaderRolling:onPageUpdate(new_page)
self:updateBatteryState()
end
function ReaderRolling:onResume()
self:updateBatteryState()
end
function ReaderRolling:onNotCharging()
self:updateBatteryState()
end
function ReaderRolling:onGotoPercent(percent)
DEBUG("goto document offset in percent:", percent)
self:gotoPercent(percent)