Fix progress bar

This commit is contained in:
ZaneYork 2020-03-07 15:38:22 +08:00
parent cc21df5126
commit 659c5b065a
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ public class DownloadableContentAdapter extends RecyclerView.Adapter<Downloadabl
MaterialDialog dialog = dialogRef.get();
if (dialog != null && !dialog.isCancelled()) {
dialog.setContent(R.string.downloading, progress.currentSize / 1024, progress.totalSize / 1024);
dialog.setProgress((int) (progress.currentSize / progress.totalSize));
dialog.setProgress((int) (progress.currentSize * 100.0 / progress.totalSize));
}
}