Fix pause issue with precedent commit
This commit is contained in:
parent
29109e32c8
commit
1fb73ed4d2
1 changed files with 2 additions and 2 deletions
|
@ -543,10 +543,10 @@ public class DialerActivity extends Activity implements LinphoneGuiListener {
|
||||||
|
|
||||||
private boolean isCallEstablished()
|
private boolean isCallEstablished()
|
||||||
{
|
{
|
||||||
LinphoneCall call = LinphoneManager.getLc().getCurrentCall();
|
if (LinphoneManager.getLc().getCalls().length == 0)
|
||||||
if (call == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
LinphoneCall call = LinphoneManager.getLc().getCalls()[0];
|
||||||
LinphoneCall.State state = call.getState();
|
LinphoneCall.State state = call.getState();
|
||||||
|
|
||||||
return state == LinphoneCall.State.Connected ||
|
return state == LinphoneCall.State.Connected ||
|
||||||
|
|
Loading…
Reference in a new issue