Merge "Avoid NPE in printspooler when changing language"
am: 8d8515e708
* commit '8d8515e708f0cebf69587750bbb3abcb315cc61e':
Avoid NPE in printspooler when changing language
This commit is contained in:
@@ -655,10 +655,12 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mCurrentPrinter != null) {
|
||||||
PrinterId printerId = mCurrentPrinter.getId();
|
PrinterId printerId = mCurrentPrinter.getId();
|
||||||
final int index = mDestinationSpinnerAdapter.getPrinterIndex(printerId);
|
final int index = mDestinationSpinnerAdapter.getPrinterIndex(printerId);
|
||||||
mDestinationSpinner.setSelection(index);
|
mDestinationSpinner.setSelection(index);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void startAdvancedPrintOptionsActivity(PrinterInfo printer) {
|
private void startAdvancedPrintOptionsActivity(PrinterInfo printer) {
|
||||||
ComponentName serviceName = printer.getId().getServiceName();
|
ComponentName serviceName = printer.getId().getServiceName();
|
||||||
|
|||||||
Reference in New Issue
Block a user