-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
refactor(ui): coroutine based user status retrieval. #13927
Conversation
/* | ||
* Nextcloud - Android Client | ||
* | ||
* SPDX-FileCopyrightText: 2024 Your Name <[email protected]> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to update this line from the template ;)
Hi @ardevd - long time no see 😃 PR looks good to me, just one minor thing regarding the template license header, else 👍 |
@AndyScherzinger glad to see you're still around :) Fixed the license header now, I think. |
Replaced ancient async task with a coroutine based alternative. This comes with numerous advantages. - Improved performance due to the nature of coroutines and the reduced overhead associated with AsyncTasks and threads. Approx a %50 performance increase was measured during testing. - Passing references to fragment lifecycle context to an AsyncTask is generally a bad idea.
0dbbc68
to
ffc0528
Compare
Yes I am - Also happy to keep being around while I don't have much time these days for coding work :/ |
Welcome back 🎉 Can you check "spotlessKotlinCheck" and "Codacy"? There is something to do. Rest is false positive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested working. Thank you 💯
codacy Signed-off-by: tobiasKaminsky <[email protected]>
Replaced ancient async task with a coroutine based alternative. This comes with numerous advantages.