mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Add update of the top and bottom status bars, on +/-Charging (#7379)
This commit is contained in:
@@ -199,6 +199,12 @@ function Device:init()
|
||||
end)
|
||||
end
|
||||
end
|
||||
elseif ev.code == C.AEVENT_POWER_CONNECTED then
|
||||
local Event = require("ui/event")
|
||||
UIManager:broadcastEvent(Event:new("Charging"))
|
||||
elseif ev.code == C.AEVENT_POWER_DISCONNECTED then
|
||||
local Event = require("ui/event")
|
||||
UIManager:broadcastEvent(Event:new("NotCharging"))
|
||||
end
|
||||
end,
|
||||
hasClipboardText = function()
|
||||
|
||||
Reference in New Issue
Block a user