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