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