New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feth listener onComplete() called twice #661
Comments
wahyurama-creator
changed the title
Feth listener called twice
Feth listener onComplete() called twice
Aug 29, 2023
Same problem and can't to resolve this issue normally (not ugly way). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why fetch listener called more than one time? I try save to database, but i see in my database have twice same data.
override fun onCompleted(download: Download) { viewModel.canGoBack.value = true viewModel.setButtonProperties(ProductStatusState.ReadyForRead) binding.apply { tvOfferSelected.text = getString(R.string.text_btn_download_success) val percentageDownload = "${download.progress}%" tvTotalPrice.text = percentageDownload } extractZipFile(applicationContext, viewModel.itemId, zipKey, fileType) saveItemToDatabase(download) }
The text was updated successfully, but these errors were encountered: