mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-05 23:45:08 +01:00
24e1b4034e
The system will crash the app if the worker that calls setForeground() finished before the service runner be able to call Service.startForeground(). This edge case is not handled by WorkManager and there is no way to check if the required calls are done. So here we suspend the worker by an arbitrary duration assuming the transition to foreground service is done by then. |
||
---|---|---|
.. | ||
debug/res | ||
main | ||
standard |