Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0fa06c0 authored by Svetoslav's avatar Svetoslav
Browse files

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
parent f230c5d2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)) {