* commit 'f9c93ba26790cf26df40d21d7e8b6e1e83391dd1': 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) {
|
protected Void doInBackground(Void... params) {
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
try {
|
try {
|
||||||
mRenderer.closeDocument();
|
if (mRenderer != null) {
|
||||||
|
mRenderer.closeDocument();
|
||||||
|
}
|
||||||
} catch (RemoteException re) {
|
} catch (RemoteException re) {
|
||||||
/* ignore */
|
/* ignore */
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -487,6 +487,10 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat
|
|||||||
requestCreatePdfFileOrFinish();
|
requestCreatePdfFileOrFinish();
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
case STATE_PRINT_CANCELED: {
|
||||||
|
updateOptionsUi();
|
||||||
|
} break;
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
updatePrintPreviewController(document.changed);
|
updatePrintPreviewController(document.changed);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user