summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2014-09-15 18:17:21 -0700
committerSvetoslav <svetoslavganov@google.com>2014-09-15 18:21:14 -0700
commite0fa06c088ea95a01c0219e9711c3bcc93ad2685 (patch)
tree0fac3170335b6c24b7dab198fb05a40016c6e6c6 /packages
parentf230c5d21be416f276009b0fd0524931cd671488 (diff)
downloadframeworks_base-e0fa06c088ea95a01c0219e9711c3bcc93ad2685.zip
frameworks_base-e0fa06c088ea95a01c0219e9711c3bcc93ad2685.tar.gz
frameworks_base-e0fa06c088ea95a01c0219e9711c3bcc93ad2685.tar.bz2
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
Diffstat (limited to 'packages')
-rw-r--r--packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java
index dc2d5b1..7574fca 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)) {