From e0fa06c088ea95a01c0219e9711c3bcc93ad2685 Mon Sep 17 00:00:00 2001 From: Svetoslav Date: Mon, 15 Sep 2014 18:17:21 -0700 Subject: [PATCH] Update print preview when a printer becomes available We laizily request printer capabilities and when they are reported we were not updating the preview and as a result the content was not rendered, hence pages showing an empty state. bug:17514117 Change-Id: Icfee7eaa1ab63f5e4d7655d4057ef2110c27cd43 --- .../src/com/android/printspooler/ui/PrintActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java index dc2d5b1f2acd2..7574fcaa0e1f7 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java +++ b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java @@ -1993,6 +1993,7 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat if ((isActive && gotCapab) || (becameActive && hasCapab)) { if (hasCapab && capabChanged) { updatePrintAttributesFromCapabilities(newCapab); + updatePrintPreviewController(false); } onPrinterAvailable(newPrinterState); } else if ((becameInactive && hasCapab) || (isActive && lostCapab)) {