Permalink
Browse files

#93: Allow user to cancel the "please wait" dialogs

  • Loading branch information...
1 parent 65186ab commit 5527444ca18e34ddb7c9417a9768ef7969178789 @talklittle committed Jan 14, 2012
View
8 src/com/andrewshu/android/reddit/comments/CommentsListActivity.java
@@ -1716,28 +1716,28 @@ public void onClick(DialogInterface dialog, int id) {
pdialog = new ProgressDialog(new ContextThemeWrapper(this, mSettings.getDialogTheme()));
pdialog.setMessage("Deleting...");
pdialog.setIndeterminate(true);
- pdialog.setCancelable(false);
+ pdialog.setCancelable(true);
dialog = pdialog;
break;
case Constants.DIALOG_EDITING:
pdialog = new ProgressDialog(new ContextThemeWrapper(this, mSettings.getDialogTheme()));
pdialog.setMessage("Submitting edit...");
pdialog.setIndeterminate(true);
- pdialog.setCancelable(false);
+ pdialog.setCancelable(true);
dialog = pdialog;
break;
case Constants.DIALOG_LOGGING_IN:
pdialog = new ProgressDialog(new ContextThemeWrapper(this, mSettings.getDialogTheme()));
pdialog.setMessage("Logging in...");
pdialog.setIndeterminate(true);
- pdialog.setCancelable(false);
+ pdialog.setCancelable(true);
dialog = pdialog;
break;
case Constants.DIALOG_REPLYING:
pdialog = new ProgressDialog(new ContextThemeWrapper(this, mSettings.getDialogTheme()));
pdialog.setMessage("Sending reply...");
pdialog.setIndeterminate(true);
- pdialog.setCancelable(false);
+ pdialog.setCancelable(true);
dialog = pdialog;
break;
case Constants.DIALOG_FIND:
View
2 src/com/andrewshu/android/reddit/mail/InboxActivity.java
@@ -206,7 +206,7 @@ public void onClick(View v) {
pdialog = new ProgressDialog(new ContextThemeWrapper(this, mSettings.getDialogTheme()));
pdialog.setMessage("Composing message...");
pdialog.setIndeterminate(true);
- pdialog.setCancelable(false);
+ pdialog.setCancelable(true);
dialog = pdialog;
break;
default:
View
4 src/com/andrewshu/android/reddit/mail/InboxListActivity.java
@@ -956,14 +956,14 @@ public void onClick(View v) {
pdialog = new ProgressDialog(new ContextThemeWrapper(this, mSettings.getDialogTheme()));
pdialog.setMessage("Logging in...");
pdialog.setIndeterminate(true);
- pdialog.setCancelable(false);
+ pdialog.setCancelable(true);
dialog = pdialog;
break;
case Constants.DIALOG_REPLYING:
pdialog = new ProgressDialog(new ContextThemeWrapper(this, mSettings.getDialogTheme()));
pdialog.setMessage("Sending reply...");
pdialog.setIndeterminate(true);
- pdialog.setCancelable(false);
+ pdialog.setCancelable(true);
dialog = pdialog;
break;
View
2 src/com/andrewshu/android/reddit/reddits/PickSubredditActivity.java
@@ -436,7 +436,7 @@ protected Dialog onCreateDialog(int id) {
pdialog = new ProgressDialog(new ContextThemeWrapper(this, mSettings.getDialogTheme()));
pdialog.setMessage("Loading your reddits...");
pdialog.setIndeterminate(true);
- pdialog.setCancelable(false);
+ pdialog.setCancelable(true);
dialog = pdialog;
break;
default:
View
4 src/com/andrewshu/android/reddit/submit/SubmitLinkActivity.java
@@ -551,14 +551,14 @@ public void onLoginChosen(String user, String password) {
pdialog = new ProgressDialog(new ContextThemeWrapper(this, mSettings.getDialogTheme()));
pdialog.setMessage("Logging in...");
pdialog.setIndeterminate(true);
- pdialog.setCancelable(false);
+ pdialog.setCancelable(true);
dialog = pdialog;
break;
case Constants.DIALOG_SUBMITTING:
pdialog = new ProgressDialog(new ContextThemeWrapper(this, mSettings.getDialogTheme()));
pdialog.setMessage("Submitting...");
pdialog.setIndeterminate(true);
- pdialog.setCancelable(false);
+ pdialog.setCancelable(true);
dialog = pdialog;
break;
default:
View
2 src/com/andrewshu/android/reddit/threads/ThreadsListActivity.java
@@ -1255,7 +1255,7 @@ public void onLoginChosen(String user, String password) {
pdialog = new ProgressDialog(new ContextThemeWrapper(this, mSettings.getDialogTheme()));
pdialog.setMessage("Logging in...");
pdialog.setIndeterminate(true);
- pdialog.setCancelable(false);
+ pdialog.setCancelable(true);
dialog = pdialog;
break;
View
6 src/com/andrewshu/android/reddit/user/ProfileActivity.java
@@ -1106,21 +1106,21 @@ public void onClick(View v) {
pdialog = new ProgressDialog(new ContextThemeWrapper(this, mSettings.getDialogTheme()));
pdialog.setMessage("Logging in...");
pdialog.setIndeterminate(true);
- pdialog.setCancelable(false);
+ pdialog.setCancelable(true);
dialog = pdialog;
break;
case Constants.DIALOG_REPLYING:
pdialog = new ProgressDialog(new ContextThemeWrapper(this, mSettings.getDialogTheme()));
pdialog.setMessage("Sending reply...");
pdialog.setIndeterminate(true);
- pdialog.setCancelable(false);
+ pdialog.setCancelable(true);
dialog = pdialog;
break;
case Constants.DIALOG_COMPOSING:
pdialog = new ProgressDialog(new ContextThemeWrapper(this, mSettings.getDialogTheme()));
pdialog.setMessage("Composing message...");
pdialog.setIndeterminate(true);
- pdialog.setCancelable(false);
+ pdialog.setCancelable(true);
dialog = pdialog;
break;

0 comments on commit 5527444

Please sign in to comment.