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

Fix Wrong Context Usage #13080

Merged
merged 2 commits into from
Jun 7, 2024
Merged

Fix Wrong Context Usage #13080

merged 2 commits into from
Jun 7, 2024

Conversation

alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Jun 6, 2024

  • Tests written, or not not needed

What this PR does?

If minSdkVersion is higher than 21, multidex is enabled by default and no need to have multidex library. Documentation

Context usage in MainApp.java may cause memory leak therefore WeakReference used

context sometimes can be null at UserAccountManagerImpl.createUserFromAccount() if context is null MainApp.context used

alperozturk96 and others added 2 commits June 7, 2024 08:53
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: github-actions <github-actions@github.com>
Copy link

github-actions bot commented Jun 7, 2024

Codacy

Lint

TypemasterPR
Warnings7069
Errors33

SpotBugs

CategoryBaseNew
Bad practice6464
Correctness6969
Dodgy code346347
Experimental11
Internationalization77
Malicious code vulnerability20
Multithreaded correctness66
Performance5757
Security1919
Total571570

Copy link

github-actions bot commented Jun 7, 2024

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

@alperozturk96 alperozturk96 merged commit b5a1716 into master Jun 7, 2024
21 checks passed
@delete-merged-branch delete-merged-branch bot deleted the bugfix/wrong-context-usage branch June 7, 2024 08:32
@alperozturk96
Copy link
Collaborator Author

/backport to stable-3.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.

None yet

2 participants