Merge "Treat empty strings similar to null-strings when composing the subtitle in the SelectPrinterActivity."

This commit is contained in:
Philip P. Moltmann
2016-01-21 16:06:45 +00:00
committed by Android (Google) Code Review

View File

@@ -635,9 +635,9 @@ public final class SelectPrinterActivity extends Activity {
CharSequence description = printer.getDescription();
CharSequence subtitle;
if (printServiceLabel == null) {
if (TextUtils.isEmpty(printServiceLabel)) {
subtitle = description;
} else if (description == null) {
} else if (TextUtils.isEmpty(description)) {
subtitle = printServiceLabel;
} else {
subtitle = getString(R.string.printer_extended_description_template,