OSDN Git Service

Add a log if the printing activity died unexpectly.
authorPhilip P. Moltmann <moltmann@google.com>
Wed, 13 Apr 2016 15:54:27 +0000 (08:54 -0700)
committerPhilip P. Moltmann <moltmann@google.com>
Wed, 13 Apr 2016 15:57:49 +0000 (08:57 -0700)
Bug: 27861927
Change-Id: I431ba996e113043c224039a62a76ae23e9c7494a

packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java

index e7aebdd..c411186 100644 (file)
@@ -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())) {