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

Do not allow multiple instances of LoadingDialog #13551

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

ZetaTom
Copy link
Collaborator

@ZetaTom ZetaTom commented Sep 11, 2024

This change reintroduces more robust state handling when creating new loading dialogues. Previously it was possible to create multiple instances by issuing successive calls to showLoadingDialog(). Because of this one or more instances could end up stuck on screen, requiring a restart of the app.

Testing these changes:

  1. Open Nextcloud App
  2. Select two or more files
  3. Download said files
  4. Observe the Wait a moment... dialogue

With this change, the dialogue should eventually disappear.


  • Tests written, or not not needed

@alperozturk96
Copy link
Collaborator

Tested working

Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/13551.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

Copy link

Codacy

Lint

TypemasterPR
Warnings5959
Errors33

SpotBugs

CategoryBaseNew
Bad practice6363
Correctness6464
Dodgy code299299
Experimental11
Internationalization77
Multithreaded correctness66
Performance5353
Security1818
Total511511

@ZetaTom ZetaTom merged commit 2ab8d51 into master Sep 12, 2024
20 checks passed
@ZetaTom ZetaTom deleted the fix/loading_dialogue_dismiss branch September 12, 2024 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants