Fix crash if service isn't running when intercepting call
This commit is contained in:
parent
47ca3d27dd
commit
098d8b4c43
2 changed files with 1 additions and 5 deletions
|
@ -32,7 +32,7 @@ public class AndroidCallInterceptor extends BroadcastReceiver {
|
||||||
phoneNumber = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
|
phoneNumber = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (context.getResources().getBoolean(R.bool.intercept_outgoing_gsm_calls) || LinphonePreferences.instance().interceptOutgoingGSMCalls()) {
|
if (context.getResources().getBoolean(R.bool.intercept_outgoing_gsm_calls)) {
|
||||||
setResultData(null);
|
setResultData(null);
|
||||||
Intent i = new Intent();
|
Intent i = new Intent();
|
||||||
i.setClass(context, LinphoneActivity.class);
|
i.setClass(context, LinphoneActivity.class);
|
||||||
|
|
|
@ -809,8 +809,4 @@ public class LinphonePreferences {
|
||||||
LinphoneManager.getInstance().initTunnelFromConf();
|
LinphoneManager.getInstance().initTunnelFromConf();
|
||||||
}
|
}
|
||||||
// End of tunnel settings
|
// End of tunnel settings
|
||||||
|
|
||||||
public boolean interceptOutgoingGSMCalls() {
|
|
||||||
return getConfig().getBool("app", "intercept_outgoing_gsm_calls", false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue