Open giovdain opened 3 years ago
bugged because under some locale, decimal format returns a string not parseable by Float.valueOf that always wants the . as decimal separator
crashing line this.progress = Float.valueOf(new DecimalFormat("#.##").format(progress));
fix this.progress = (float)Math.round(progress * 100.0f) / 100.0f;
bugged because under some locale, decimal format returns a string not parseable by Float.valueOf that always wants the . as decimal separator
crashing line this.progress = Float.valueOf(new DecimalFormat("#.##").format(progress));
fix this.progress = (float)Math.round(progress * 100.0f) / 100.0f;