Fix crash
This commit is contained in:
parent
5b0801c0a5
commit
ec71a1275e
1 changed files with 2 additions and 2 deletions
|
@ -1008,7 +1008,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
}
|
||||
|
||||
if (state == CallEnd || state == Error) {
|
||||
TelephonyManager tm = (TelephonyManager) LinphoneActivity.instance().getSystemService(Context.TELEPHONY_SERVICE);
|
||||
TelephonyManager tm = (TelephonyManager) LinphoneService.instance().getSystemService(Context.TELEPHONY_SERVICE);
|
||||
if (tm.getCallState() == TelephonyManager.CALL_STATE_IDLE) {
|
||||
mAudioManager.setMode(MODE_NORMAL);
|
||||
}
|
||||
|
@ -1393,7 +1393,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
boolean sendCamera = mLc.getConferenceSize() == 0;
|
||||
enableCamera(call, sendCamera);
|
||||
}
|
||||
TelephonyManager tm = (TelephonyManager) LinphoneActivity.instance().getSystemService(Context.TELEPHONY_SERVICE);
|
||||
TelephonyManager tm = (TelephonyManager) LinphoneService.instance().getSystemService(Context.TELEPHONY_SERVICE);
|
||||
if (state == State.CallEnd && mLc.getCallsNb() == 0 && tm.getCallState() == TelephonyManager.CALL_STATE_IDLE) {
|
||||
routeAudioToReceiver();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue