mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 07:21:10 +00:00
Fix overflow presentation when active speaker changes.
This commit is contained in:
@@ -87,7 +87,8 @@ public final class CallParticipantsState {
|
|||||||
List<CallParticipant> listParticipants = new ArrayList<>();
|
List<CallParticipant> listParticipants = new ArrayList<>();
|
||||||
|
|
||||||
if (isViewingFocusedParticipant && getAllRemoteParticipants().size() > 1) {
|
if (isViewingFocusedParticipant && getAllRemoteParticipants().size() > 1) {
|
||||||
listParticipants.addAll(getAllRemoteParticipants().subList(1, getAllRemoteParticipants().size()));
|
listParticipants.addAll(getAllRemoteParticipants());
|
||||||
|
listParticipants.remove(focusedParticipant);
|
||||||
} else if (getAllRemoteParticipants().size() > SMALL_GROUP_MAX) {
|
} else if (getAllRemoteParticipants().size() > SMALL_GROUP_MAX) {
|
||||||
listParticipants.addAll(getAllRemoteParticipants().subList(SMALL_GROUP_MAX, getAllRemoteParticipants().size()));
|
listParticipants.addAll(getAllRemoteParticipants().subList(SMALL_GROUP_MAX, getAllRemoteParticipants().size()));
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user