update battery state on device resume

This commit is contained in:
Qingping Hou committed 2014-01-16 18:34:46 -05:00
1 parent f7b47a3634
commit 21af7b6a9f
2 files changed
+14 -4

No files matched your search

+8
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)