Prevent too many participants for mosaic layout snack message when not in mosaic layout
This commit is contained in:
parent
c6c146d213
commit
14685c550c
1 changed files with 4 additions and 1 deletions
|
@ -102,7 +102,10 @@ class ConferenceCallFragment : GenericFragment<VoipConferenceCallFragmentBinding
|
||||||
conferenceViewModel.conferenceParticipantDevices.observe(
|
conferenceViewModel.conferenceParticipantDevices.observe(
|
||||||
viewLifecycleOwner
|
viewLifecycleOwner
|
||||||
) {
|
) {
|
||||||
if (it.size > conferenceViewModel.maxParticipantsForMosaicLayout) {
|
if (
|
||||||
|
conferenceViewModel.conferenceDisplayMode.value == ConferenceDisplayMode.GRID &&
|
||||||
|
it.size > conferenceViewModel.maxParticipantsForMosaicLayout
|
||||||
|
) {
|
||||||
showSnackBar(R.string.conference_too_many_participants_for_mosaic_layout)
|
showSnackBar(R.string.conference_too_many_participants_for_mosaic_layout)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue