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

Commit 028d7939 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Fix PeopleSpace when showing only priority or recent conversations (1/2)

Bug: 238993727
Test: atest PeopleSpaceScreenshotTest
Change-Id: I273859b1b8173d7feb329114e59d242e0a0dfb45
parent ff576d73
Loading
Loading
Loading
Loading
+13 −4
Original line number Diff line number Diff line
@@ -139,14 +139,23 @@ private fun PeopleScreenWithConversations(
                    bottom = PeopleSpacePadding,
                    start = 8.dp,
                    end = 8.dp,
                )
                ),
        ) {
            val hasPriorityConversations = priorityTiles.isNotEmpty()
            if (hasPriorityConversations) {
                ConversationList(R.string.priority_conversations, priorityTiles, onTileClicked)
            }

            if (recentTiles.isNotEmpty()) {
                if (hasPriorityConversations) {
                    item { Spacer(Modifier.height(35.dp)) }
                }

                ConversationList(R.string.recent_conversations, recentTiles, onTileClicked)
            }
        }
    }
}

private fun LazyListScope.ConversationList(
    @StringRes headerTextResource: Int,