Skip to content

Conversation

@hannesa2
Copy link
Contributor

@hannesa2 hannesa2 commented Jan 2, 2020

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.

@jesmrec jesmrec added this to the 2.15 milestone Jan 8, 2020
@jesmrec jesmrec added the Sprint label Jan 8, 2020
Copy link
Contributor

@abelgardep abelgardep left a 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

Comment on lines 732 to 736
if (powerManager != null) {
return powerManager.isPowerSaveMode();
} else {
return false;
}
Copy link
Contributor

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();

Copy link
Contributor Author

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

Copy link
Contributor

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.

@jesmrec
Copy link
Collaborator

jesmrec commented Jan 14, 2020

Code cleaning. Some checks:

  • App builds correctly
  • CI passes correctly
  • gradlew lint

approved

@davigonz davigonz merged commit 4f2b6fd into master Jan 14, 2020
@davigonz davigonz deleted the codeFormat branch January 14, 2020 16:26
@abelgardep abelgardep removed the Sprint label Jan 20, 2020
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.

5 participants