Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d978ba1 authored by Philip P. Moltmann's avatar Philip P. Moltmann Committed by Android (Google) Code Review
Browse files

Merge "In rare cases the printing client app might have been dieded before...

Merge "In rare cases the printing client app might have been dieded before remotePrintDocument.start(). In this case the print spooler should not crash."
parents f7b50180 f6114c4f
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -173,6 +173,9 @@ public final class RemotePrintDocument {
        if (DEBUG) {
            Log.i(LOG_TAG, "[CALLED] start()");
        }
        if (mState == STATE_FAILED) {
            Log.w(LOG_TAG, "Failed before start.");
        } else {
            if (mState != STATE_INITIAL) {
                throw new IllegalStateException("Cannot start in state:" + stateToString(mState));
            }
@@ -184,6 +187,7 @@ public final class RemotePrintDocument {
                mState = STATE_FAILED;
            }
        }
    }

    public boolean update(PrintAttributes attributes, PageRange[] pages, boolean preview) {
        boolean willUpdate;