mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-25 20:23:19 +00:00
Fix switch camera tooltip showing incorrectly.
This commit is contained in:
@@ -172,6 +172,10 @@ public class CallParticipantView extends ConstraintLayout {
|
||||
|
||||
audioIndicator.setVisibility(View.VISIBLE);
|
||||
audioIndicator.bind(participant.isMicrophoneEnabled(), participant.getAudioLevel());
|
||||
|
||||
if (selfPipMode != SelfPipMode.NOT_SELF_PIP) {
|
||||
switchCameraIconFrame.setVisibility(participant.isVideoEnabled() ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
if (participantChanged || !Objects.equals(contactPhoto, participant.getRecipient().getContactPhoto())) {
|
||||
|
||||
@@ -351,7 +351,7 @@ public class WebRtcCallViewModel extends ViewModel {
|
||||
|
||||
if (SignalStore.tooltips().showCallingSwitchCameraTooltip() &&
|
||||
canDisplaySwitchCameraTooltipIfNeeded &&
|
||||
hasEnabledLocalVideo &&
|
||||
localParticipant.getCameraState().isEnabled() &&
|
||||
webRtcViewModel.getState() == WebRtcViewModel.State.CALL_CONNECTED &&
|
||||
!newState.getAllRemoteParticipants().isEmpty()
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user