fix no battery info on minibar for PDF documents

This should fix #757.
This commit is contained in:
chrox
2014-08-05 12:17:50 +08:00
parent 024091168f
commit 51ba4f987a

View File

@@ -126,7 +126,7 @@ function ReaderFooter:updateFooterPage()
self.progress_bar.percentage = self.pageno / self.pages
if DMINIBAR_ALL_AT_ONCE then
self.progress_text.text = ""
if DMINIBAR_NEXT_CHAPTER then
if DMINIBAR_BATTERY then
local powerd = Device:getPowerDevice()
local state = powerd:isCharging() and -1 or powerd:getCapacity()
self.progress_text.text = self.progress_text.text .. " | B:" .. powerd:getCapacity() .. "%"