mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-08 09:18:39 +01:00
Fix switch camera tooltip showing incorrectly.
This commit is contained in:
+4
@@ -172,6 +172,10 @@ public class CallParticipantView extends ConstraintLayout {
|
|||||||
|
|
||||||
audioIndicator.setVisibility(View.VISIBLE);
|
audioIndicator.setVisibility(View.VISIBLE);
|
||||||
audioIndicator.bind(participant.isMicrophoneEnabled(), participant.getAudioLevel());
|
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())) {
|
if (participantChanged || !Objects.equals(contactPhoto, participant.getRecipient().getContactPhoto())) {
|
||||||
|
|||||||
+1
-1
@@ -351,7 +351,7 @@ public class WebRtcCallViewModel extends ViewModel {
|
|||||||
|
|
||||||
if (SignalStore.tooltips().showCallingSwitchCameraTooltip() &&
|
if (SignalStore.tooltips().showCallingSwitchCameraTooltip() &&
|
||||||
canDisplaySwitchCameraTooltipIfNeeded &&
|
canDisplaySwitchCameraTooltipIfNeeded &&
|
||||||
hasEnabledLocalVideo &&
|
localParticipant.getCameraState().isEnabled() &&
|
||||||
webRtcViewModel.getState() == WebRtcViewModel.State.CALL_CONNECTED &&
|
webRtcViewModel.getState() == WebRtcViewModel.State.CALL_CONNECTED &&
|
||||||
!newState.getAllRemoteParticipants().isEmpty()
|
!newState.getAllRemoteParticipants().isEmpty()
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user