Be less strict with feed and folder names (#206)

This commit is contained in:
Shinokuni 2024-09-20 13:07:12 +02:00
parent bf3c654a25
commit 81dc80d19a
4 changed files with 8 additions and 8 deletions

View File

@ -64,14 +64,14 @@ fun FeedItem(
FeedIcon(
iconUrl = feed.iconUrl,
name = feed.name!!,
name = feed.name.orEmpty(),
size = 16.dp
)
ShortSpacer()
Text(
text = feed.name!!,
text = feed.name.orEmpty(),
style = MaterialTheme.typography.bodyMedium,
maxLines = 1,
overflow = TextOverflow.Ellipsis

View File

@ -84,7 +84,7 @@ fun FolderExpandableItem(
MediumSpacer()
Text(
text = folder.name!!,
text = folder.name.orEmpty(),
style = MaterialTheme.typography.bodyLarge,
maxLines = 1,
overflow = TextOverflow.Ellipsis,

View File

@ -113,7 +113,7 @@ fun DrawerFolderItem(
DrawerFeedItem(
label = {
Text(
text = feed.name!!,
text = feed.name.orEmpty(),
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
@ -121,7 +121,7 @@ fun DrawerFolderItem(
icon = {
FeedIcon(
iconUrl = feed.iconUrl,
name = feed.name!!
name = feed.name.orEmpty()
)
},
badge = { Text(feed.unreadCount.toString()) },

View File

@ -63,7 +63,7 @@ fun TimelineDrawer(
DrawerFolderItem(
label = {
Text(
text = folder.name!!,
text = folder.name.orEmpty(),
fontWeight = FontWeight.Medium,
maxLines = 1,
overflow = TextOverflow.Ellipsis
@ -92,7 +92,7 @@ fun TimelineDrawer(
DrawerFeedItem(
label = {
Text(
text = feed.name!!,
text = feed.name.orEmpty(),
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
@ -100,7 +100,7 @@ fun TimelineDrawer(
icon = {
FeedIcon(
iconUrl = feed.iconUrl,
name = feed.name!!
name = feed.name.orEmpty()
)
},
badge = { Text(feed.unreadCount.toString()) },