Disable hazeEffect if spaces are not enabled.
Give us time to fix the transparency issue that has been discovered on the navigation bar.
This commit is contained in:
parent
cb1db019f1
commit
dfd5343397
1 changed files with 9 additions and 4 deletions
|
|
@ -182,10 +182,15 @@ private fun HomeScaffold(
|
|||
displayFilters = roomListState.displayFilters && state.currentHomeNavigationBarItem == HomeNavigationBarItem.Chats,
|
||||
filtersState = roomListState.filtersState,
|
||||
canReportBug = state.canReportBug,
|
||||
modifier = Modifier.hazeEffect(
|
||||
state = hazeState,
|
||||
style = HazeMaterials.thick(),
|
||||
)
|
||||
modifier = if (state.isSpaceFeatureEnabled) {
|
||||
Modifier.hazeEffect(
|
||||
state = hazeState,
|
||||
style = HazeMaterials.thick(),
|
||||
)
|
||||
} else {
|
||||
Modifier
|
||||
.background(ElementTheme.colors.bgCanvasDefault)
|
||||
}
|
||||
)
|
||||
},
|
||||
bottomBar = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue