Skip to content

Commit e90396f

Browse files
committed
progress bar working in deployment details
1 parent f3fe407 commit e90396f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/org/redcross/openmapkit/deployments/DeploymentDetailsActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ protected void onCreate(Bundle savedInstanceState) {
6161
progressTextView = (TextView)findViewById(R.id.progressTextView);
6262
progressTextView.setText(deployment.fileCount() + " files. Total Size: " + deployment.totalSizeMB());
6363

64-
// progressBar = (ProgressBar)findViewById(R.id.progressBar);
65-
// progressBar.setMax(100);
64+
progressBar = (ProgressBar)findViewById(R.id.progressBar);
65+
progressBar.setMax((int)deployment.totalSize());
6666

6767
/**
6868
* SETUP FOR EXPANDABLE LIST VIEW FOR MBTILES AND OSM FILES
@@ -160,7 +160,7 @@ public void onDeploymentDownloadProgressUpdate(String msg, long bytesDownloaded)
160160
progressTextView.setText(msg);
161161
progressTextView.setTextColor(getResources().getColor(R.color.black));
162162
progressTextView.setTypeface(null, Typeface.NORMAL);
163-
// progressBar.setProgress((int)bytesDownloaded);
163+
progressBar.setProgress((int)bytesDownloaded);
164164
}
165165

166166
@Override

0 commit comments

Comments
 (0)