Prevent crash int OutgoingCallReceiver
This commit is contained in:
parent
fd69d6636f
commit
240feadf01
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ public class OutgoingCallReceiver extends BroadcastReceiver {
|
||||||
if (intent.getAction().equals(Intent.ACTION_NEW_OUTGOING_CALL)) {
|
if (intent.getAction().equals(Intent.ACTION_NEW_OUTGOING_CALL)) {
|
||||||
Log.e(TAG, "===>>>> Linphone OutgoingCallReceiver : ACTION_NEW_OUTGOING_CALL");
|
Log.e(TAG, "===>>>> Linphone OutgoingCallReceiver : ACTION_NEW_OUTGOING_CALL");
|
||||||
String number = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
|
String number = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
|
||||||
if(mPrefs.getNativeDialerCall()){
|
if(mPrefs.getConfig() != null && mPrefs.getNativeDialerCall()){
|
||||||
abortBroadcast();
|
abortBroadcast();
|
||||||
setResultData(null);
|
setResultData(null);
|
||||||
Intent newIntent = new Intent(ACTION_CALL_LINPHONE);
|
Intent newIntent = new Intent(ACTION_CALL_LINPHONE);
|
||||||
|
|
Loading…
Reference in a new issue