Premature finish() in DescriptionEditActivity cancels in-flight API requests

Open
#6,871 8 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Roniscend is already working on this.

Since Jun 14, 2026.

Assessment

This issue has not been assessed yet.

Description

Synchronous finish() calls in onSubmitButtonClicked() and updateDescription() trigger onDestroy() and clear the compositeDisposable before RxJava network operations can execute
1)
Image
2)
Image
finish() is called twice here and both are getting executed before the async Rxjava calls. So when the activity is destroyed compositedisposable clears in onDestroy() which cancels the api requests to update

Dominant language
Kotlin
Stars
1.2k
Forks
1.4k
Avg merge
1d 4h
Merged PRs (30d)
156

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from commons-app/apps-android-commons

All issues in commons-app/apps-android-commons

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.