Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Make statistics menu less sad - decorations and colour #4203
Make statistics menu less sad - decorations and colour #4203
Changes from 35 commits
72e6acd
8c2db12
ee0d534
bb49e68
d3f8157
6140ad1
f4f1abe
04ff843
5b2535a
03c21f7
2b117ff
c49444f
3cea77e
27e73b7
7f2585a
9a61547
3117e03
409ef51
fc049b1
8cbecf0
fb415ab
8bf90d2
64eb57a
aca6ef3
a0dc92a
412435c
5528e67
c3220a6
90434fb
79861bb
6d01823
1c09c1e
f81533c
56958af
6d34230
dcc559b
ca8a9b9
4d2cbbe
6625df7
33619fb
4712728
f8cf200
91a1e78
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
should be a private field
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.
Are you sure that it should be moved out of that function?
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.
I am just parroting what the IDE warns about. Android Studio warns about creation of objects in the
draw
function for performance reasons. Since this paint is always the same, it also makes sense.It's weird that your Android studio didn't display a warning there? Did you switch off warnings?
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.
I switched off some that were consistently annoying and useless. I can enable them again, and triage them again - maybe they improved something.
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.
FYI you can also apply a matrix transformation (to flip the bitmap) on drawing on the canvas, might be easier.
https://developer.android.com/reference/android/graphics/Canvas#drawBitmap(android.graphics.Bitmap,%20android.graphics.Matrix,%20android.graphics.Paint)
(But you are not exactly drawing thousands of wreaths each frame, so perfomance of creating dozens of intermediate bitmaps is no issue)