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

This commit is contained in:
Philip P. Moltmann
2016-05-02 15:49:47 +00:00
committed by Android (Google) Code Review

View File

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