Open AndroidDeveloperLB opened 3 years ago
The docs write about using setForegroundAsync, but the sample doesn't show it: https://developer.android.com/topic/libraries/architecture/workmanager/advanced/long-running
Also, please show how to perform operations on the UI thread on the new CoroutineWorker. I don't see any function annotated with WorkerThread/UiThread which is confusing. That's true in both Kotlin and Java.
The docs write about using setForegroundAsync, but the sample doesn't show it: https://developer.android.com/topic/libraries/architecture/workmanager/advanced/long-running
Also, please show how to perform operations on the UI thread on the new CoroutineWorker. I don't see any function annotated with WorkerThread/UiThread which is confusing. That's true in both Kotlin and Java.