mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Kobo: Yet another attempt at working around the hangs on the latest NXP boards (#10771)
* Notification: Drop the fencing from #10083; it never actually helped, and had subtle side-effects we could do without. * VirtualKeyBoard: Flash on close, otherwise, some of the fast refresh glitches may be burned into the working buffer until a flash. Making sure we flash ourselves prevent it from sticking around on the page ;). * util: Move `writeToSysfs` to base (i.e., `ffi/util`), as we need it there (and it actually makes more sense there anyway ;p). * Bump base for https://github.com/koreader/koreader-base/pull/1645, which is where the actual workaround (hopefully) lives. Re #8414, #9806, #10558
This commit is contained in:
@@ -203,11 +203,8 @@ function Notification:onCloseWidget()
|
||||
end
|
||||
|
||||
function Notification:onShow()
|
||||
-- NOTE: We use the elusive "[ui]" mode solely for the sake of NTX boards flagged as unreliable,
|
||||
-- in the hope that this will save them from an EPDC race that might make them horribly crash.
|
||||
-- c.f., https://github.com/koreader/koreader/issues/9806#issuecomment-1416827447
|
||||
UIManager:setDirty(self, function()
|
||||
return "[ui]", self.frame.dimen
|
||||
return "ui", self.frame.dimen
|
||||
end)
|
||||
if self.timeout then
|
||||
UIManager:scheduleIn(self.timeout, function() UIManager:close(self) end)
|
||||
|
||||
Reference in New Issue
Block a user