Fixed link account with phone number feature

This commit is contained in:
Sylvain Berfini 2020-03-24 15:00:57 +01:00
parent 1704946922
commit d879f9d746

View file

@ -237,9 +237,18 @@ public class PhoneAccountLinkingAssistantActivity extends AssistantActivity {
super.onResume();
Core core = LinphoneManager.getCore();
// Save & restore username & password informations, reload will reset
String username = getAccountCreator().getUsername();
String ha1 = getAccountCreator().getHa1();
String algo = getAccountCreator().getAlgorithm();
if (core != null) {
reloadLinphoneAccountCreatorConfig();
}
AccountCreator creator = getAccountCreator();
creator.setUsername(username);
creator.setHa1(ha1);
creator.setAlgorithm(algo);
getAccountCreator().addListener(mListener);