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

Commit d0e1239e authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Add a log if the printing activity died unexpectly.

Bug: 27861927
Change-Id: I431ba996e113043c224039a62a76ae23e9c7494a
parent c2e8857a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -320,6 +320,8 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat
                mFileProvider, new RemotePrintDocument.RemoteAdapterDeathObserver() {
            @Override
            public void onDied() {
                Log.w(LOG_TAG, "Printing app died unexpectedly");

                // 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())) {