Skip to content

Commit

Permalink
progress bar working in deployment details
Browse files Browse the repository at this point in the history
  • Loading branch information
hallahan committed Mar 8, 2016
1 parent f3fe407 commit e90396f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e90396f

Please sign in to comment.