mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-29 18:08:58 +03:00
Fix wrong conditions
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
7da475f8cc
commit
42d9b07c4e
1 changed files with 6 additions and 4 deletions
|
@ -231,12 +231,14 @@ public class CallActivity extends AppCompatActivity {
|
||||||
networkBroadcastReceier = new BroadcastReceiver() {
|
networkBroadcastReceier = new BroadcastReceiver() {
|
||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
if (!Device.getNetworkType(context).equals(JobRequest.NetworkType.ANY) && !leavingCall) {
|
if (!Device.getNetworkType(context).equals(JobRequest.NetworkType.ANY)) {
|
||||||
|
if (!leavingCall) {
|
||||||
startPullingSignalingMessages(true);
|
startPullingSignalingMessages(true);
|
||||||
} else if (Device.getNetworkType(context).equals(JobRequest.NetworkType.ANY) && leavingCall) {
|
} else {
|
||||||
hangup(true);
|
hangup(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
callControls.setZ(100.0f);
|
callControls.setZ(100.0f);
|
||||||
|
|
Loading…
Reference in a new issue