Add check on default proxy config.
This commit is contained in:
parent
04aae085aa
commit
969f396e62
1 changed files with 1 additions and 1 deletions
|
@ -505,7 +505,7 @@ public final class LinphoneService extends Service implements LinphoneServiceLis
|
||||||
// Log.i("Service not ready, discarding registration state change to ",state.toString());
|
// Log.i("Service not ready, discarding registration state change to ",state.toString());
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
if (state == RegistrationState.RegistrationOk && LinphoneManager.getLc().getDefaultProxyConfig().isRegistered()) {
|
if (state == RegistrationState.RegistrationOk && LinphoneManager.getLc().getDefaultProxyConfig() != null && LinphoneManager.getLc().getDefaultProxyConfig().isRegistered()) {
|
||||||
sendNotification(IC_LEVEL_ORANGE, R.string.notification_registered);
|
sendNotification(IC_LEVEL_ORANGE, R.string.notification_registered);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue