Skip to content

Conversation

@alexknop
Copy link
Collaborator

Problem:
-Android.os.AsyncTask is deprecated
-imageViewReference could not be null in some parts
-if/else could be optimized
-getAvatarDimension is unused

Solution
-Leverage Executor for InitDiskCacheTask
-Removed non-null check
-Use requireNonNullElseGet
-Remove unused function

…InitDiskCacheTask. remove unused resouce

Signed-off-by: Alex Knop <knopalex@msu.edu>
@github-actions
Copy link

Codacy

Lint

TypemasterPR
Warnings5151
Errors1111

SpotBugs

CategoryBaseNew
Bad practice6565
Correctness5860
Dodgy code292279
Experimental11
Internationalization77
Malicious code vulnerability11
Multithreaded correctness77
Performance5148
Security1818
Total500486

@github-actions
Copy link

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

@tobiasKaminsky tobiasKaminsky merged commit 3aa3147 into master May 28, 2025
21 checks passed
@tobiasKaminsky tobiasKaminsky deleted the initdiskcache branch May 28, 2025 07:51
@tobiasKaminsky tobiasKaminsky added this to the Nextcloud App 3.32.0 milestone May 28, 2025
@github-actions
Copy link

github-actions bot commented Jun 1, 2025

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!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

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.

3 participants