Icon in status bar only display main account status
This commit is contained in:
parent
7b0305110a
commit
5b3eb64158
1 changed files with 2 additions and 2 deletions
|
@ -447,11 +447,11 @@ 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state == RegistrationState.RegistrationFailed || state == RegistrationState.RegistrationCleared) {
|
if ((state == RegistrationState.RegistrationFailed || state == RegistrationState.RegistrationCleared) && (LinphoneManager.getLc().getDefaultProxyConfig() == null || !LinphoneManager.getLc().getDefaultProxyConfig().isRegistered())) {
|
||||||
sendNotification(IC_LEVEL_OFFLINE, R.string.notification_register_failure);
|
sendNotification(IC_LEVEL_OFFLINE, R.string.notification_register_failure);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue