Treat empty strings similar to null-strings when composing the subtitle in the SelectPrinterActivity.
Change-Id: Ia0ee353df56b2f835f1ac291dc69eb3747425e6b
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user