Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve RequestBuilder.submitAsync() to ensure the coroutine continua…
…tion is resumed only once (#4436) `RequestListener.onResourceReady()` may also be called to provide the placeholder image when the request is starting or when it is cleared. Check if the current request is complete (its status set to COMPLETE) to determine if the Glide resource is for a thumbnail/placeholder or the final image, and resume the coroutine only for the final image (or in case of error). This logic is [borrowed from the Glide Flow API](https://github.com/bumptech/glide/blob/a7351b0ecf6656ad937fbc52fe9e90d3b289c265/integration/ktx/src/main/java/com/bumptech/glide/integration/ktx/Flows.kt#L378).
- Loading branch information