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.
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).
MultiProgressBar/multiprogressbar/src/main/java/com/genius/multiprogressbar/MultiProgressBar.kt
Line 294 in fc9f084
I find this overly aggressive, a simple warning (or even complete swallowing) would be better here IMHO.