mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: Up the delay for tryToSetForeground
This commit is contained in:
parent
27f4cea4c4
commit
e9d22f4dba
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ fun setLocaleByAppCompat() {
|
|||
suspend fun CoroutineWorker.tryToSetForeground() {
|
||||
try {
|
||||
setForeground(getForegroundInfo())
|
||||
delay(500)
|
||||
delay(1000)
|
||||
} catch (e: IllegalStateException) {
|
||||
Logger.e(e) { "Not allowed to set foreground job" }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue