mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
In rare cases, it seems either that `onDraw` is called before `onMeasure` or that `onMeasure` is called with a view that has zero height/width. This causes `reallocateCache` to produce an IllegalArgumentException. This patch ensures that diameter is never zero. Fixes #904