Skip to content
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

Open
wahyurama-creator opened this issue Aug 29, 2023 · 1 comment
Open

Feth listener onComplete() called twice #661

wahyurama-creator opened this issue Aug 29, 2023 · 1 comment

Comments

@wahyurama-creator
Copy link

wahyurama-creator commented Aug 29, 2023

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) }

image

@wahyurama-creator wahyurama-creator changed the title Feth listener called twice Feth listener onComplete() called twice Aug 29, 2023
@LunevNF
Copy link

LunevNF commented Feb 25, 2024

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants