Merge "Fix PeopleSpace when showing only priority or recent conversations (1/2)" into tm-qpr-dev am: d5a4b9e514
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20795170 Change-Id: Ide1a98ecada9661c9e4bb25b5a54840be89d3f02 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
committed by
Automerger Merge Worker
commit
8142b837a2
@@ -139,14 +139,23 @@ private fun PeopleScreenWithConversations(
|
|||||||
bottom = PeopleSpacePadding,
|
bottom = PeopleSpacePadding,
|
||||||
start = 8.dp,
|
start = 8.dp,
|
||||||
end = 8.dp,
|
end = 8.dp,
|
||||||
)
|
),
|
||||||
) {
|
) {
|
||||||
|
val hasPriorityConversations = priorityTiles.isNotEmpty()
|
||||||
|
if (hasPriorityConversations) {
|
||||||
ConversationList(R.string.priority_conversations, priorityTiles, onTileClicked)
|
ConversationList(R.string.priority_conversations, priorityTiles, onTileClicked)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (recentTiles.isNotEmpty()) {
|
||||||
|
if (hasPriorityConversations) {
|
||||||
item { Spacer(Modifier.height(35.dp)) }
|
item { Spacer(Modifier.height(35.dp)) }
|
||||||
|
}
|
||||||
|
|
||||||
ConversationList(R.string.recent_conversations, recentTiles, onTileClicked)
|
ConversationList(R.string.recent_conversations, recentTiles, onTileClicked)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun LazyListScope.ConversationList(
|
private fun LazyListScope.ConversationList(
|
||||||
@StringRes headerTextResource: Int,
|
@StringRes headerTextResource: Int,
|
||||||
|
|||||||
Reference in New Issue
Block a user