Marker list: split category and description into two fields.

This commit is contained in:
Dennis Guse
2025-12-03 16:59:48 +01:00
parent d518507193
commit 595ad7f7b5
3 changed files with 19 additions and 20 deletions
@@ -174,20 +174,6 @@ public class StringUtils {
return new Pair<>(value, context.getString(R.string.sensor_unit_power));
}
@Deprecated //TODO use separate UI elements rather than concatenating strings.
public static String getCategoryDescription(String category, String description) {
if (category == null || category.isEmpty()) {
return description;
}
StringBuilder builder = new StringBuilder();
builder.append(category);
if (description != null && !description.isEmpty()) {
builder.append(" ").append(description);
}
return builder.toString();
}
/**
* Formats the given text as a XML CDATA element.
* This includes adding the starting and ending CDATA tags.