mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Force initialization of FrontLight in Input:init() to avoid glitches in Kobo
This commit is contained in:
@@ -264,6 +264,7 @@ function Input:init()
|
||||
if Device:isTouchDevice() then
|
||||
self:initTouchState()
|
||||
end
|
||||
Device:getFrontlight() -- forces initialization
|
||||
-- set up fake event map
|
||||
self.event_map[10000] = "IntoSS" -- go into screen saver
|
||||
self.event_map[10001] = "OutOfSS" -- go out of screen saver
|
||||
|
||||
Reference in New Issue
Block a user