mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-13 18:53:38 +00:00
Fix download progress bug for modules larger than 20MB
This commit is contained in:
parent
e518f4cef8
commit
13dad848bd
@ -179,7 +179,7 @@ public class ProcessRepoZip extends ParallelTask<Void, Object, Boolean> {
|
|||||||
|
|
||||||
private void updateDlProgress(int step) {
|
private void updateDlProgress(int step) {
|
||||||
progress += 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
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user