Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Fix issues in getMinPixels and getMaxPixels #457

Conversation

winksaville
Copy link

The getMinPixels and getMaxPixels methods will never assert,
return null or return a negative value.

Remove assert statements in getMinPixels and getMaxPixels. The assert
in gitMinPixel was asserting if an application on an Android device
was run while the display was off because totalPixels was 0.

Handle totalPixels parameter being null.

The getMinPixels and getMaxPixels methods will never assert,
return null or return a negative value.

Remove assert statements in getMinPixels and getMaxPixels. The assert
in gitMinPixel was asserting if an application on an Android device
was run while the display was off because totalPixels was 0.

Handle totalPixels parameter being null.
@winksaville
Copy link
Author

This has been fixed on a fork of charts at exafree/charts_cf.

@stuartmorgan
Copy link
Collaborator

This project is no longer maintained, and cannot accept any PRs. Community members interested in collaborating on a community-maintained fork can coordinate in this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants