mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 13:05:31 +03:00
Better toggle for sensor
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
fc7c8c469d
commit
353bc6c1dd
1 changed files with 2 additions and 1 deletions
|
@ -1247,7 +1247,8 @@ 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 && videoOn) {
|
||||
if (EffortlessPermissions.hasPermissions(this, PERMISSIONS_CAMERA) && inCall && videoOn
|
||||
&& !localVideoTrack.enabled()) {
|
||||
runOnUiThread(() -> toggleMedia(enableVideo, true));
|
||||
}
|
||||
} else if (peerConnectionEvent.getPeerConnectionEventType().equals(PeerConnectionEvent
|
||||
|
|
Loading…
Reference in a new issue