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

Change-Id: Ia0ee353df56b2f835f1ac291dc69eb3747425e6b
This commit is contained in:
Philip P. Moltmann
2016-01-20 13:55:38 -08:00
parent 370153709e
commit 5462e88c02

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,