You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend/apps/reader/modules
NiLuJe ae5b2d68ca
AutoSuspend: Don't send LeaveStandby events from a zombie plugin instance (#9124)
Long story short: the LeaveStandby event is sent via `tickAfterNext`, so if we tear down the plugin right after calling it (in this case, that means that the very input event that wakes the device up from suspend is one that kills ReaderUI or FileManager), what's in UIManager's task queue isn't the actual function, but the anonymous nextTick wrapper constructed by `tickAfterNext` (c.f., 
https://github.com/koreader/koreader/issues/9112#issuecomment-1133999385).

Tweak `UIManager:tickAfterNext` to return a reference to said wrapper, so that we can store it and unschedule that one, too, in `AutoSuspend:onCloseWidget`.

Fix #9112 (many thanks to [@boredhominid](https://github.com/boredhominid) for his help in finding a repro for this ;)).
Re: #8638, as the extra debugging facilities (i.e., ebb81b9845) added during testing might help pinpoint the root issue for that one, too.

Also includes a minor simplification to `UIManager:_checkTasks`, and various other task queue related codepaths (e.g., `WakeupMgr`) ;).
2 years ago
..
readeractivityindicator.lua ReaderActivityIndicator: fix isStub() 4 years ago
readerback.lua Allow Backspace to work as back button 2 years ago
readerbookmark.lua [feat] Non-touch improvements (#8859) 2 years ago
readerconfig.lua Non-Touch: improve bottom menu usability (#8712) 2 years ago
readercoptlistener.lua A host of low power states related tweaks (#9036) 2 years ago
readercropping.lua Non-touch: highlight movement improvement and enable page crop (#8947) 2 years ago
readerdevicestatus.lua DoubleSpinWidget, SpinWidget: add units, make usage more consistent (#9046) 2 years ago
readerdictionary.lua AutoSuspend: Don't send LeaveStandby events from a zombie plugin instance (#9124) 2 years ago
readerdogear.lua LuaSettings: Add a method to initialize a setting properly (#7371) 3 years ago
readerflipping.lua Update UI layout code to use new SVG icons 4 years ago
readerfont.lua Dispatcher: Set font 3 years ago
readerfooter.lua DoubleSpinWidget, SpinWidget: add units, make usage more consistent (#9046) 2 years ago
readergoto.lua [feat] Non-touch improvements (#8859) 2 years ago
readerhighlight.lua DoubleSpinWidget, SpinWidget: add units, make usage more consistent (#9046) 2 years ago
readerhinting.lua minor(readerhinting): access document directly instead of from ui 8 years ago
readerkoptlistener.lua "Simplify" HW/SW dithering checks 2 years ago
readerlink.lua PDF: align page view with target when following internal link (#8907) 2 years ago
readermenu.lua [Non-Touch] Don't add touch-related menu items (#8608) 2 years ago
readerpagemap.lua ReaderPageMap: fix page labels in 2-columns mode 2 years ago
readerpaging.lua [feat] Replace TimeVal (RIP) with time, fixed point time seconds (#8999) 2 years ago
readerpanning.lua feat: add logger module & rewrite kobo suspend script in lua 8 years ago
readerrolling.lua Merge `discardEvents` & `inhibitInput` (#9065) 2 years ago
readerrotation.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
readerscrolling.lua DoubleSpinWidget, SpinWidget: add units, make usage more consistent (#9046) 2 years ago
readersearch.lua [feat] Non-touch improvements (#8859) 2 years ago
readerstatus.lua BookStatusWidget: fix status toggle (#8329) 3 years ago
readerstyletweak.lua Allow Backspace to work as back button 2 years ago
readerthumbnail.lua [feat] Replace TimeVal (RIP) with time, fixed point time seconds (#8999) 2 years ago
readertoc.lua Non-touch: fix crash when expanding ToC (#8892) 2 years ago
readertypeset.lua Doc settings reset: fix default block_rendering_mode (#8792) 2 years ago
readertypography.lua DoubleSpinWidget, SpinWidget: add units, make usage more consistent (#9046) 2 years ago
readeruserhyph.lua UserHyph: Scrub and sort user dict (#8863) 2 years ago
readerview.lua Page turn animations: add to dispatcher (#9123) 2 years ago
readerwikipedia.lua [feat] Non-touch improvements (#8859) 2 years ago
readerzooming.lua SpinWidget: similar size in portrait and landscape (#8226) 3 years ago