Merge "Delay callback from printerRegistry after Constr." into nyc-dev

am: 1f113db350

* commit '1f113db35095c8f43b702991dd68edc1ce398c82':
  Delay callback from printerRegistry after Constr.

Change-Id: I7fbea2dc9cef8c37889616ac1ac694f253adf533
This commit is contained in:
Philip P. Moltmann
2016-05-02 15:58:58 +00:00
committed by android-build-merger

View File

@@ -288,12 +288,8 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat
// the first batch of results which will be delivered
// after reading historical data. This should be pretty
// fast, so just wait before showing the UI.
mPrinterRegistry = new PrinterRegistry(PrintActivity.this,
new Runnable() {
@Override
public void run() {
onPrinterRegistryReady(documentAdapter);
}
mPrinterRegistry = new PrinterRegistry(PrintActivity.this, () -> {
(new Handler(getMainLooper())).post(() -> onPrinterRegistryReady(documentAdapter));
}, LOADER_ID_PRINT_REGISTRY, LOADER_ID_PRINT_REGISTRY_INT);
}