iOS app crashes when setting progress to 0
Closed this issue · 3 comments
Deleted user commented
Hi,
@shannah : As discussed on stackoverflow:
the CN1 app using CircleProgress will crash, when using setProgress with the value "0".
So:
CircleProgress cp = new CircleProgress();
cp.setProgress( 0 );
is causing the app to crash.
Best regards
shannah commented
This should be fixed for next server update.
Deleted user commented
Thanks for fixing this. As only setting the progress when it's larger than 0 does not work around this issue. It crashes in any case if the progress is only 0. So it cannot be displayed with progress 0 until the fix is available.
Deleted user commented
I don't know if this commit or this (codenameone/CodenameOne@8237311) did the trick.
However it works now.
Only thing I wanted to mention is, that now there is a difference between:
- not setting progress if 0: does not show an arc at all
- setting the progress 0: shows a nice arc with no progress
Thanks again @shannah