architecture-components-samples icon indicating copy to clipboard operation
architecture-components-samples copied to clipboard

Request: for WorkManager sample, show how to update the notification, and also how to perform UI-thread operations

Open AndroidDeveloperLB opened this issue 3 years ago • 0 comments

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.

AndroidDeveloperLB avatar Mar 06 '21 01:03 AndroidDeveloperLB