Use fancy sync dialouge with progress bar as soon as minimal API level is raised

Bug #1152995 reported by Stefan Hammer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tomdroid
Triaged
Wishlist
Unassigned

Bug Description

Something like this was already implemented, but we wanted to support android 1.5 and 1.6, therefore we replaced it with an ugly one :-)

Dialog dialog;
AlertDialog alertDialog;
private static ProgressDialog syncProgressDialog;

    syncProgressDialog = new ProgressDialog(this);
    syncProgressDialog.setTitle(String.format(getString(R.string.syncing),serviceDescription));
    syncProgressDialog.setMessage(getString(R.string.syncing_connect));
    syncProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
    syncProgressDialog.setButton(ProgressDialog.BUTTON_NEGATIVE, getString(R.string.cancel), new DialogInterface.OnClickListener() {
     public void onClick(DialogInterface dialog, int which) {
      syncProgressDialog.cancel();
     }
    });
    syncProgressDialog.setOnCancelListener(new DialogInterface.OnCancelListener() {

     public void onCancel(DialogInterface dialog) {
      SyncManager.getInstance().cancel();
     }
     dialogString
    });
          syncProgressDialog.setIndeterminate(true);
          syncProgressDialog.dismiss();

Tags: ui
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.