fix: Up the delay for tryToSetForeground

This commit is contained in:
nonproto 2024-11-24 10:32:14 +07:00 committed by Ahmad Ansori Palembani
parent 27f4cea4c4
commit e9d22f4dba
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -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" }
}