mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
Fix sensor far & near events
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
a6a3f44534
commit
d24c96e573
@ -1108,7 +1108,8 @@ public class CallActivity extends AppCompatActivity {
|
|||||||
.PeerConnectionEventType.SENSOR_NEAR)) {
|
.PeerConnectionEventType.SENSOR_NEAR)) {
|
||||||
boolean enableVideo = peerConnectionEvent.getPeerConnectionEventType().equals(PeerConnectionEvent
|
boolean enableVideo = peerConnectionEvent.getPeerConnectionEventType().equals(PeerConnectionEvent
|
||||||
.PeerConnectionEventType.SENSOR_FAR) && videoOn;
|
.PeerConnectionEventType.SENSOR_FAR) && videoOn;
|
||||||
if (EffortlessPermissions.hasPermissions(this, PERMISSIONS_CAMERA) && inCall) {
|
if (EffortlessPermissions.hasPermissions(this, PERMISSIONS_CAMERA) && inCall &&
|
||||||
|
enableVideo != videoOn) {
|
||||||
toggleMedia(enableVideo, true);
|
toggleMedia(enableVideo, true);
|
||||||
}
|
}
|
||||||
} else if (peerConnectionEvent.getPeerConnectionEventType().equals(PeerConnectionEvent
|
} else if (peerConnectionEvent.getPeerConnectionEventType().equals(PeerConnectionEvent
|
||||||
|
Loading…
Reference in New Issue
Block a user