chen-fishbein/CN1CircleProgress

iOS app crashes when setting progress to 0

Closed this issue · 3 comments

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

This should be fixed for next server update.

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.

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