Revision d3ea294b src/com/rackspacecloud/android/ContainerObjectDetails.java
b/src/com/rackspacecloud/android/ContainerObjectDetails.java | ||
---|---|---|
21 | 21 |
import android.app.Activity; |
22 | 22 |
import android.app.AlertDialog; |
23 | 23 |
import android.app.Dialog; |
24 |
import android.app.ProgressDialog; |
|
24 | 25 |
import android.content.Context; |
25 | 26 |
import android.content.DialogInterface; |
26 | 27 |
import android.content.Intent; |
... | ... | |
61 | 62 |
private double kiloBytes; |
62 | 63 |
public Button previewButton; |
63 | 64 |
public Context context; |
65 |
ProgressDialog dialog; |
|
64 | 66 |
|
65 | 67 |
/** Called when the activity is first created. */ |
66 | 68 |
@Override |
... | ... | |
263 | 265 |
private class ContainerObjectDeleteTask extends AsyncTask<Void, Void, HttpResponse> { |
264 | 266 |
|
265 | 267 |
private CloudServersException exception; |
268 |
|
|
269 |
protected void onPreExecute(){ |
|
270 |
dialog = ProgressDialog.show(ContainerObjectDetails.this, "", "Deleting...", true); |
|
271 |
} |
|
266 | 272 |
|
267 | 273 |
@Override |
268 | 274 |
protected HttpResponse doInBackground(Void... arg0) { |
... | ... | |
278 | 284 |
|
279 | 285 |
@Override |
280 | 286 |
protected void onPostExecute(HttpResponse response) { |
287 |
dialog.dismiss(); |
|
281 | 288 |
if (response != null) { |
282 | 289 |
int statusCode = response.getStatusLine().getStatusCode(); |
283 | 290 |
if (statusCode == 204) { |
Also available in: Unified diff