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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user