Skip to content

Commit 0ced769

Browse files
committed
Widen isNotEmpty with isNotBlank to potentially catch blank values
1 parent 4a5ec5b commit 0ced769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/NewsResourceCard.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ fun NewsResourceMetaData(
267267
) {
268268
val formattedDate = dateFormatted(publishDate)
269269
Text(
270-
if (resourceType.isNotEmpty()) {
270+
if (resourceType.isNotBlank()) {
271271
stringResource(R.string.card_meta_data_text, formattedDate, resourceType)
272272
} else {
273273
formattedDate

0 commit comments

Comments
 (0)