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

Unintended UI elements showing #11965

Merged
merged 8 commits into from
Dec 12, 2023
Merged

Conversation

parneet-guraya
Copy link
Contributor

@parneet-guraya parneet-guraya commented Sep 12, 2023

Resolves #11700

  • Tests written, or not not needed

  • Fixes issues mentions in the issue.

  • sortListGroup visibility handled by Stack. So, it does not go out of sync. Here's how it's handling -->

    • If going into a View which needs to have different visibility (either visible or not).
    • Then, we save the current visibility first and then change the visibility according to upcoming view
    • So, when going back we can pop out the visibility and we will have the correct visibility.
    • This way view visibility will never go out of sync (because of some unhandled case) and we will always have the correct visibility applied since we're saving it in a stack and popping out when going back.
    • It is somewhat like how Fragments are in backstack and going back they popes out.
    • Same way we're stacking up (when going in but only when we need to change the visibility) and popping out (handled to pop only for the cases where it needs to popped).

Before

Record_2023-09-12-22-05-52.mp4

After

VID_20230912190728.mp4

@parneet-guraya
Copy link
Contributor Author

Also, here are the issues that I found while I was working on this PR (the issues mentioned are not introduced because of this PR). Issues -->

I will be working on these issues. Other than that have a look on this PR and let me know if any changes required or any suggestions.
Thanks!

@parneet-guraya
Copy link
Contributor Author

parneet-guraya commented Oct 3, 2023

Hello team 👋, I'd appreciate it if someone could review my PR soon. Let me know if it needs changes.

Thanks! 😄

Copy link
Collaborator

@ZetaTom ZetaTom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this problem and explaining the rationale behind this solution. With this change in place, the UI behaves as expected and I haven't managed to break it again since.

The changes made to other files, including refactoring parts of FileDisplayActivity, are valid and a necessary effort. However, as we try to keep pull requests as modular as possible, I would suggest moving this to a separate branch if it's not too much trouble.

@parneet-guraya
Copy link
Contributor Author

parneet-guraya commented Oct 23, 2023

The changes made to other files, including refactoring parts of FileDisplayActivity, are valid and a necessary effort. However, as we try to keep pull requests as modular as possible, I would suggest moving this to a separate branch if it's not too much trouble.

Hi 👋 @ZetaTom , If I understood correctly you mean to have this commit (where I have did some refactoring) 5260ec7 to be in a separate branch? I may be wrong, if that's the case could you explain it what changes should be pushed in a separate branch?

@ZetaTom
Copy link
Collaborator

ZetaTom commented Oct 24, 2023

Hi 👋 @ZetaTom , If I understood correctly you mean to have this commit (where I have did some refactoring) 5260ec7 to be in a separate branch? I may be wrong, if that's the case could you explain it what changes should be pushed in a separate branch?

Yes, essentially extract those changes, and any changes not directly related to the issue at hand, into a separate pull request. This will make it easier to review and maintain in the future.

@parneet-guraya
Copy link
Contributor Author

parneet-guraya commented Oct 24, 2023

I got rid of the refactoring part. Check it out :-)

@parneet-guraya
Copy link
Contributor Author

Hi, just following up on the changes I made for this PR. Could you please take a look when you get a chance?

Thanks!

@parneet-guraya
Copy link
Contributor Author

Hi @AndyScherzinger 👋, I was wondering is there anything left to do before merging this? Already approved.

@AndyScherzinger
Copy link
Member

@parneet-guraya all good I would say 👍 Let's merge when the checks have finished 👍

Copy link

Codacy

Lint

TypemasterPR
Warnings7070
Errors33

SpotBugs

CategoryBaseNew
Bad practice2626
Correctness6868
Dodgy code360360
Experimental22
Internationalization99
Malicious code vulnerability22
Multithreaded correctness99
Performance5555
Security1818
Total549549

Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/11965.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.

@AndyScherzinger AndyScherzinger merged commit 9c12aec into master Dec 12, 2023
20 checks passed
@delete-merged-branch delete-merged-branch bot deleted the unintended-UI-elements-showing branch December 12, 2023 18:45
@AndyScherzinger AndyScherzinger added this to the Nextcloud App 3.28.0 milestone Dec 12, 2023
Copy link

github-actions bot commented Apr 3, 2024

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants