From e90396f84f5e421ef0191101297102da26413495 Mon Sep 17 00:00:00 2001 From: Nicholas Hallahan Date: Tue, 8 Mar 2016 13:21:50 -0800 Subject: [PATCH] progress bar working in deployment details --- .../openmapkit/deployments/DeploymentDetailsActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/redcross/openmapkit/deployments/DeploymentDetailsActivity.java b/app/src/main/java/org/redcross/openmapkit/deployments/DeploymentDetailsActivity.java index 6dd556b..a6afb7e 100644 --- a/app/src/main/java/org/redcross/openmapkit/deployments/DeploymentDetailsActivity.java +++ b/app/src/main/java/org/redcross/openmapkit/deployments/DeploymentDetailsActivity.java @@ -61,8 +61,8 @@ protected void onCreate(Bundle savedInstanceState) { progressTextView = (TextView)findViewById(R.id.progressTextView); progressTextView.setText(deployment.fileCount() + " files. Total Size: " + deployment.totalSizeMB()); -// progressBar = (ProgressBar)findViewById(R.id.progressBar); -// progressBar.setMax(100); + progressBar = (ProgressBar)findViewById(R.id.progressBar); + progressBar.setMax((int)deployment.totalSize()); /** * SETUP FOR EXPANDABLE LIST VIEW FOR MBTILES AND OSM FILES @@ -160,7 +160,7 @@ public void onDeploymentDownloadProgressUpdate(String msg, long bytesDownloaded) progressTextView.setText(msg); progressTextView.setTextColor(getResources().getColor(R.color.black)); progressTextView.setTypeface(null, Typeface.NORMAL); -// progressBar.setProgress((int)bytesDownloaded); + progressBar.setProgress((int)bytesDownloaded); } @Override