show battery icon in crereader page header

This commit is contained in:
chrox
2014-01-04 22:30:36 +08:00
parent 4d1df962f5
commit a6e885e77d
3 changed files with 19 additions and 1 deletions

View File

@@ -297,6 +297,11 @@ function CreDocument:setVisiblePageCount(new_count)
self._document:setVisiblePageCount(new_count)
end
function CreDocument:setBatteryState(state)
DEBUG("CreDocument: set battery state", state)
self._document:setBatteryState(state)
end
function CreDocument:register(registry)
registry:addProvider("txt", "application/txt", self)
registry:addProvider("epub", "application/epub", self)