mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-28 08:00:19 +01:00
Remove no longer needed condition
Now that the event is posted only for proximity sensor changes the condition is no longer needed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
5d7b5160b7
commit
4516de4add
@ -2125,11 +2125,6 @@ public class CallActivity extends CallBaseActivity {
|
|||||||
|
|
||||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||||
public void onMessageEvent(ProximitySensorEvent proximitySensorEvent) {
|
public void onMessageEvent(ProximitySensorEvent proximitySensorEvent) {
|
||||||
if (proximitySensorEvent.getProximitySensorEventType() ==
|
|
||||||
ProximitySensorEvent.ProximitySensorEventType.SENSOR_FAR ||
|
|
||||||
proximitySensorEvent.getProximitySensorEventType() ==
|
|
||||||
ProximitySensorEvent.ProximitySensorEventType.SENSOR_NEAR) {
|
|
||||||
|
|
||||||
if (!isVoiceOnlyCall) {
|
if (!isVoiceOnlyCall) {
|
||||||
boolean enableVideo = proximitySensorEvent.getProximitySensorEventType() ==
|
boolean enableVideo = proximitySensorEvent.getProximitySensorEventType() ==
|
||||||
ProximitySensorEvent.ProximitySensorEventType.SENSOR_FAR && videoOn;
|
ProximitySensorEvent.ProximitySensorEventType.SENSOR_FAR && videoOn;
|
||||||
@ -2140,7 +2135,6 @@ public class CallActivity extends CallBaseActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private void handlePeerConnected(String sessionId, String videoStreamType) {
|
private void handlePeerConnected(String sessionId, String videoStreamType) {
|
||||||
String participantDisplayItemId = sessionId + "-" + videoStreamType;
|
String participantDisplayItemId = sessionId + "-" + videoStreamType;
|
||||||
|
Loading…
Reference in New Issue
Block a user