Merge "Update 'more options' button when changing the printer." into nyc-dev

This commit is contained in:
Philip P. Moltmann
2016-03-08 16:19:53 +00:00
committed by Android (Google) Code Review

View File

@@ -2634,6 +2634,10 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat
}
mPrinterAvailabilityDetector.updatePrinter(currentPrinter);
// Force a reload of the enabled print services to update
// mAdvancedPrintOptionsActivity in onLoadFinished();
getLoaderManager().getLoader(LOADER_ID_ENABLED_PRINT_SERVICES).forceLoad();
} else if (spinner == mMediaSizeSpinner) {
SpinnerItem<MediaSize> mediaItem = mMediaSizeSpinnerAdapter.getItem(position);
PrintAttributes attributes = mPrintJob.getAttributes();