Fix PhoneStateChangedReceiver.
This commit is contained in:
parent
ea94d00d2c
commit
17056c3a8b
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ public class PhoneStateChangedReceiver extends BroadcastReceiver {
|
||||||
|
|
||||||
if (TelephonyManager.EXTRA_STATE_RINGING.equals(extraState) || TelephonyManager.EXTRA_STATE_OFFHOOK.equals(extraState)) {
|
if (TelephonyManager.EXTRA_STATE_RINGING.equals(extraState) || TelephonyManager.EXTRA_STATE_OFFHOOK.equals(extraState)) {
|
||||||
LinphoneManager.gsmIdle = false;
|
LinphoneManager.gsmIdle = false;
|
||||||
if (LinphoneManager.isInstanciated()) {
|
if (!LinphoneManager.isInstanciated()) {
|
||||||
Log.i("GSM call state changed but manager not instantiated");
|
Log.i("GSM call state changed but manager not instantiated");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue