am eaaf0512: Crash in print spooler when back pressed before content update complted.
* commit 'eaaf0512fcbf03b926cdbbbb7f54df474ecf861a': Crash in print spooler when back pressed before content update complted.
This commit is contained in:
@@ -486,7 +486,9 @@ public final class PageContentRepository {
|
||||
protected Void doInBackground(Void... params) {
|
||||
synchronized (mLock) {
|
||||
try {
|
||||
mRenderer.closeDocument();
|
||||
if (mRenderer != null) {
|
||||
mRenderer.closeDocument();
|
||||
}
|
||||
} catch (RemoteException re) {
|
||||
/* ignore */
|
||||
}
|
||||
|
||||
@@ -487,6 +487,10 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat
|
||||
requestCreatePdfFileOrFinish();
|
||||
} break;
|
||||
|
||||
case STATE_PRINT_CANCELED: {
|
||||
updateOptionsUi();
|
||||
} break;
|
||||
|
||||
default: {
|
||||
updatePrintPreviewController(document.changed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user