update battery state on device resume
This commit is contained in:
1 parent
f7b47a3634
commit
21af7b6a9f
2 files changed
+14
-4
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user