Browse Source

Fix sensors stuff

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 7 năm trước cách đây
mục cha
commit
6671da9590

+ 1 - 2
app/src/main/java/com/nextcloud/talk/activities/CallActivity.java

@@ -1171,8 +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 &&
-                    enableVideo != videoOn) {
+            if (EffortlessPermissions.hasPermissions(this, PERMISSIONS_CAMERA) && inCall) {
                 runOnUiThread(() -> toggleMedia(enableVideo, true));
             }
         } else if (peerConnectionEvent.getPeerConnectionEventType().equals(PeerConnectionEvent