mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
AutoDim: close trapper widget explicitly (#9675)
This commit is contained in:
@@ -302,6 +302,10 @@ function AutoDim:autodim_task()
|
||||
end
|
||||
local fl_diff = self.autodim_save_fl - self.autodim_end_fl
|
||||
if fl_diff > 0 then
|
||||
if self.trap_widget then
|
||||
UIManager:close(self.trap_widget)
|
||||
end
|
||||
|
||||
self.trap_widget = TrapWidget:new{
|
||||
dismiss_callback = function()
|
||||
self:restoreFrontlight()
|
||||
|
||||
Reference in New Issue
Block a user