show battery icon in crereader page header

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

No files matched your search

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