Do not remove AuthInfo on registrationStateChanged cb when state is Cleared
This commit is contained in:
parent
bbb5a04e52
commit
bfa64e44ec
1 changed files with 1 additions and 7 deletions
|
@ -239,12 +239,6 @@ public class LinphoneActivity extends LinphoneGenericActivity implements OnClick
|
||||||
@Override
|
@Override
|
||||||
public void onRegistrationStateChanged(Core lc, ProxyConfig proxy, RegistrationState state, String smessage) {
|
public void onRegistrationStateChanged(Core lc, ProxyConfig proxy, RegistrationState state, String smessage) {
|
||||||
AuthInfo authInfo = lc.findAuthInfo(proxy.getRealm(), proxy.getIdentityAddress().getUsername(), proxy.getDomain());
|
AuthInfo authInfo = lc.findAuthInfo(proxy.getRealm(), proxy.getIdentityAddress().getUsername(), proxy.getDomain());
|
||||||
if (state.equals(RegistrationState.Cleared)) {
|
|
||||||
if (lc != null) {
|
|
||||||
if (authInfo != null)
|
|
||||||
lc.removeAuthInfo(authInfo);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
refreshAccounts();
|
refreshAccounts();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue