Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5462e88c authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

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

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

Change-Id: Ia0ee353df56b2f835f1ac291dc69eb3747425e6b
parent 37015370
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,