Skip to content

Crash when measuredWidth becomes 0 #4

@ubuntudroid

Description

@ubuntudroid

Due to the following check an exception is thrown when the measured width becomes 0 (which can happen quite easily e.g. if the view's visibility is set to GONE or if the view size is dynamic).

check(!(measuredWidth != 0 && singleProgressWidth < 0)) { "There is not enough space to draw a MultiProgressBar" }

I find this overly aggressive, a simple warning (or even complete swallowing) would be better here IMHO.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions