[android] Round map download percentage

Reviewed-on: https://codeberg.org/comaps/comaps/pulls/1110
Reviewed-by: x7z4w <x7z4w@noreply.codeberg.org>
Co-authored-by: gekeleda <git@davidgekeler.eu>
Co-committed-by: gekeleda <git@davidgekeler.eu>
This commit is contained in:
gekeleda
2025-07-28 08:41:11 +02:00
committed by x7z4w
parent 0dc8d69375
commit d1da6c197e

View File

@@ -142,9 +142,10 @@ public class OnmapDownloader implements MwmActivity.LeftAnimationTrackListener
if (progress)
{
int roundedProgress = Math.round(mCurrentCountry.progress);
mProgress.setPending(false);
mProgress.setProgress(Math.round(mCurrentCountry.progress));
sizeText = mActivity.getString(R.string.downloader_downloading) + " " + StringUtils.formatPercent(mCurrentCountry.progress / 100);
mProgress.setProgress(roundedProgress);
sizeText = mActivity.getString(R.string.downloader_downloading) + " " + StringUtils.formatPercent(roundedProgress / 100.0);
}
else
{