Fix can't receive audio and video pip render bug.
This commit is contained in:
parent
7d81ed1150
commit
62ca6cdd2f
1 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,7 @@ public class CallParticipantView extends ConstraintLayout {
|
|||
private boolean infoMode;
|
||||
private boolean raiseHandAllowed;
|
||||
private Runnable missingMediaKeysUpdater;
|
||||
private boolean shouldRenderInPip;
|
||||
|
||||
private SelfPipMode selfPipMode = SelfPipMode.NOT_SELF_PIP;
|
||||
|
||||
|
@ -198,6 +199,8 @@ public class CallParticipantView extends ConstraintLayout {
|
|||
pipBadge.setBadgeFromRecipient(participant.getRecipient());
|
||||
contactPhoto = participant.getRecipient().getContactPhoto();
|
||||
}
|
||||
|
||||
setRenderInPip(shouldRenderInPip);
|
||||
}
|
||||
|
||||
private boolean isMissingMediaKeys(@NonNull CallParticipant participant) {
|
||||
|
@ -223,10 +226,15 @@ public class CallParticipantView extends ConstraintLayout {
|
|||
}
|
||||
|
||||
void setRenderInPip(boolean shouldRenderInPip) {
|
||||
this.shouldRenderInPip = shouldRenderInPip;
|
||||
|
||||
if (infoMode) {
|
||||
infoMessage.setVisibility(shouldRenderInPip ? View.GONE : View.VISIBLE);
|
||||
infoMoreInfo.setVisibility(shouldRenderInPip ? View.GONE : View.VISIBLE);
|
||||
infoOverlay.setOnClickListener(shouldRenderInPip ? v -> infoMoreInfo.performClick() : null);
|
||||
return;
|
||||
} else {
|
||||
infoOverlay.setOnClickListener(null);
|
||||
}
|
||||
|
||||
avatar.setVisibility(shouldRenderInPip ? View.GONE : View.VISIBLE);
|
||||
|
|
Loading…
Add table
Reference in a new issue