forked from upstream-mirrors/OpenTracks
Cleanup: use .isEmpty() (except for CharSequence and StringBuilder as it requires SDK33).
This commit is contained in:
@@ -88,7 +88,7 @@ public class DescriptionGenerator {
|
||||
* @param lineBreak the line break
|
||||
*/
|
||||
private void writeString(String text, StringBuilder builder, int resId, String lineBreak) {
|
||||
if (text == null || text.length() == 0) {
|
||||
if (text == null || text.isEmpty()) {
|
||||
text = context.getString(R.string.value_unknown);
|
||||
}
|
||||
builder.append(context.getString(resId, text));
|
||||
|
||||
Reference in New Issue
Block a user