-
Notifications
You must be signed in to change notification settings - Fork 3.1k
code format and minor lint issues #2777
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
Conversation
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.
Just a tiny suggestion @hannesa2
| if (powerManager != null) { | ||
| return powerManager.isPowerSaveMode(); | ||
| } else { | ||
| return false; | ||
| } |
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.
It is simpler this way, don't you think?
return (powerManager != null) && powerManager.isPowerSaveMode();
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.
It is and I changed it.
Btw, I would rater convert every touched file to Kotlin. But with this #2680 experience, it's a task of someone else
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.
Thanks for the change. About converting files to kotlin, i consider that it could be great but only if an optimization is performed. I see no point in migrating to kotlin and keep java style.
|
Code cleaning. Some checks:
approved |
(cherry picked from commit 44769d0)
These are just code format lines and some minor lint issues. I opened this as an additional pull request to keep #2776 small.
Normally it should bot be a big deal to accept them.