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 Canvas.drawRect on older Android #655

Merged
merged 1 commit into from Dec 22, 2023
Merged

Fix Canvas.drawRect on older Android #655

merged 1 commit into from Dec 22, 2023

Conversation

devemux86
Copy link
Contributor

@devemux86 devemux86 commented Dec 21, 2023

BRouter download manager does not show the grid on older Android.

The reason seems to be that the y parameters are passed in wrong order in Canvas.drawRect.
They are "left, top, right, bottom" where we usually expect left < right and top < bottom.
The left < right are correct, but currently the top > bottom with no rectangles showing.

If we reverse them, then the rectangles appear again on older Android.
Newer Android works because it may reorder the parameters internally.

@afischerdev afischerdev merged commit 7ffee3a into abrensch:master Dec 22, 2023
1 check passed
@afischerdev afischerdev added this to the Version 1.7.4 milestone Dec 22, 2023
@devemux86 devemux86 deleted the drawrect branch December 22, 2023 17: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