diff options
author | Svetoslav <svetoslavganov@google.com> | 2014-09-17 18:38:27 -0700 |
---|---|---|
committer | Svet Ganov <svetoslavganov@google.com> | 2014-09-18 13:32:38 -0700 |
commit | b75632c7366d3c848a5d31782d9942dd2818adcb (patch) | |
tree | c7564858a7b0086963db1b958ec6cf560d4be84d | |
parent | c55214a95caf1ebd9fe37a328f7e8d36efcde7bd (diff) | |
download | frameworks_base-b75632c7366d3c848a5d31782d9942dd2818adcb.zip frameworks_base-b75632c7366d3c848a5d31782d9942dd2818adcb.tar.gz frameworks_base-b75632c7366d3c848a5d31782d9942dd2818adcb.tar.bz2 |
Print UI stuck when backing out of documents UI.
When user chooses to save to PDF we open the document chooser UI.
Now if the user now backs to the print UI without choosing a file,
the print UI has all options disabled and the back button does
not work - the user is stuck. This is because we were not
transitioning the print UI in the correct state.
bug:17557454
Change-Id: I385129e106ed41564b89137ca54d409127ba8ff0
-rw-r--r-- | packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java index d169319..c4b3262 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java +++ b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java @@ -595,7 +595,7 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat } }); } else if (resultCode == RESULT_CANCELED) { - setState(STATE_CONFIGURING); + mState = STATE_CONFIGURING; updateOptionsUi(); } else { setState(STATE_CREATE_FILE_FAILED); @@ -2335,7 +2335,7 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat mContext.unbindService(PageShredder.this); mCallback.run(); } - }.executeOnExecutor(AsyncTask.SERIAL_EXECUTOR); + }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } @Override |