Closed Drjacky closed 8 months ago
Your problem actually has nothing to do with Lottie at all. If you notice, the "No internet" and retry button don't appear either.
Your issue is that you're using your collectIn
function on Flow<Failure>
. When you resume, your productsListByCoroutine
flow emits paging data which then clears the loading ui. However, your failure flow never re-emits.
and retry button don't appear either.
You're right!
__
The issue was one extra call on loadingUI(false)
and misplace of binding.inclItemError.itemErrorContainer.gone()
Link to fork with a repro in the issue-repro module https://github.com/Drjacky/MVVMTemplate/issues/56
Describe the bug Animation stops after turning the screen off and on.
Steps To Reproduce Steps to reproduce the behaviour:
I tested with Lottie 4.2.2 and 6.2.0 and it exists.