am 0c8e15c0: am 60cdb909: am 0a1ffdb3: Merge "Handle if the printing app is killed while saving to PDF." into lmp-dev

* commit '0c8e15c016efa64cc8db6a1f1fbcade34543cf3f':
  Handle if the printing app is killed while saving to PDF.
This commit is contained in:
Svetoslav
2014-10-14 23:11:11 +00:00
committed by Android Git Automerger

View File

@@ -286,7 +286,9 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat
mFileProvider, new RemotePrintDocument.RemoteAdapterDeathObserver() {
@Override
public void onDied() {
if (isFinishing()) {
// If we are finishing or we are in a state that we do not need any
// data from the printing app, then no need to finish.
if (isFinishing() || (isFinalState(mState) && !mPrintedDocument.isUpdating())) {
return;
}
setState(STATE_PRINT_CANCELED);