Fix default proxy config when using remote provisioning

This commit is contained in:
Gautier Pelloux-Prayer 2014-07-18 14:56:07 +02:00
parent 00dc6724ec
commit 46570a33a4
2 changed files with 3 additions and 3 deletions

View file

@ -618,7 +618,7 @@ public class LinphonePreferences {
public int getDefaultAccountIndex() {
LinphoneProxyConfig defaultPrxCfg = getLc().getDefaultProxyConfig();
if (defaultPrxCfg == null)
return 0;
return -1;
LinphoneProxyConfig[] prxCfgs = getLc().getProxyConfigList();
for (int i = 0; i < prxCfgs.length; i++) {
@ -626,7 +626,7 @@ public class LinphonePreferences {
return i;
}
}
return 0;
return -1;
}
public int getAccountCount() {

@ -1 +1 @@
Subproject commit bc4060f5f7829e7687985a761190cf6cfa70902d
Subproject commit 066c01470218234f0c815e6431214715c633b14a