diff --git a/app/src/main/java/com/topjohnwu/magisk/asyncs/ProcessRepoZip.java b/app/src/main/java/com/topjohnwu/magisk/asyncs/ProcessRepoZip.java index 72c48b40d..3997b996d 100644 --- a/app/src/main/java/com/topjohnwu/magisk/asyncs/ProcessRepoZip.java +++ b/app/src/main/java/com/topjohnwu/magisk/asyncs/ProcessRepoZip.java @@ -179,7 +179,7 @@ public class ProcessRepoZip extends ParallelTask { private void updateDlProgress(int step) { progress += step; - progressDialog.setMessage(getActivity().getString(R.string.zip_download_msg, 100 * progress / total)); + progressDialog.setMessage(getActivity().getString(R.string.zip_download_msg, (int) (100 * (double) progress / total + 0.5))); } @Override