Fix download progress bug for modules larger than 20MB

This commit is contained in:
topjohnwu 2017-11-18 14:17:26 +08:00
parent e518f4cef8
commit 13dad848bd

View File

@ -179,7 +179,7 @@ public class ProcessRepoZip extends ParallelTask<Void, Object, Boolean> {
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