Ensure push notification is enabled after successful remote provisioning
This commit is contained in:
parent
d54696116c
commit
34a45c9035
1 changed files with 3 additions and 1 deletions
|
@ -1603,12 +1603,14 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou
|
||||||
ConfiguringState state, String message) {
|
ConfiguringState state, String message) {
|
||||||
Log.d("Remote provisioning status = " + state.toString() + " (" + message + ")");
|
Log.d("Remote provisioning status = " + state.toString() + " (" + message + ")");
|
||||||
|
|
||||||
|
LinphonePreferences prefs = LinphonePreferences.instance();
|
||||||
if (state == ConfiguringState.Successful) {
|
if (state == ConfiguringState.Successful) {
|
||||||
if (LinphonePreferences.instance().isProvisioningLoginViewEnabled()) {
|
if (prefs.isProvisioningLoginViewEnabled()) {
|
||||||
ProxyConfig proxyConfig = lc.createProxyConfig();
|
ProxyConfig proxyConfig = lc.createProxyConfig();
|
||||||
Address addr = proxyConfig.getIdentityAddress();
|
Address addr = proxyConfig.getIdentityAddress();
|
||||||
wizardLoginViewDomain = addr.getDomain();
|
wizardLoginViewDomain = addr.getDomain();
|
||||||
}
|
}
|
||||||
|
prefs.setPushNotificationEnabled(prefs.isPushNotificationEnabled());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue