Manual setProgress by user is not working fine due to int / int division.

setProgress was not calculating newPercent correctly when called
externaly by the user