Merge "Update print preview when a printer becomes available" into lmp-dev

This commit is contained in:
Svetoslav
2014-09-16 02:21:58 +00:00
committed by Android (Google) Code Review

View File

@@ -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)) {