Fixed issue in generic login + fixed crash when deleting an account
This commit is contained in:
parent
77539422a1
commit
fdc3e164e4
2 changed files with 1 additions and 10 deletions
|
@ -27,19 +27,14 @@ import android.widget.EditText;
|
|||
import android.widget.RadioGroup;
|
||||
import android.widget.TextView;
|
||||
import androidx.annotation.Nullable;
|
||||
import org.linphone.LinphoneManager;
|
||||
import org.linphone.R;
|
||||
import org.linphone.core.AccountCreator;
|
||||
import org.linphone.core.TransportType;
|
||||
import org.linphone.settings.LinphonePreferences;
|
||||
|
||||
public class GenericConnectionAssistantActivity extends AssistantActivity implements TextWatcher {
|
||||
private TextView mLogin;
|
||||
private EditText mUsername, mPassword, mDomain, mDisplayName;
|
||||
private RadioGroup mTransport;
|
||||
|
||||
private AccountCreator mAccountCreator;
|
||||
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
@ -68,10 +63,6 @@ public class GenericConnectionAssistantActivity extends AssistantActivity implem
|
|||
mDomain = findViewById(R.id.assistant_domain);
|
||||
mDomain.addTextChangedListener(this);
|
||||
mTransport = findViewById(R.id.assistant_transports);
|
||||
|
||||
mAccountCreator =
|
||||
LinphoneManager.getCore()
|
||||
.createAccountCreator(LinphonePreferences.instance().getXmlrpcUrl());
|
||||
}
|
||||
|
||||
private void configureAccount() {
|
||||
|
|
|
@ -537,10 +537,10 @@ public class AccountSettingsFragment extends SettingsFragment {
|
|||
core.removeAuthInfo(mAuthInfo);
|
||||
}
|
||||
}
|
||||
((SettingsActivity) getActivity()).popBackStack();
|
||||
((SettingsActivity) getActivity())
|
||||
.getSideMenuFragment()
|
||||
.displayAccountsInSideMenu();
|
||||
((SettingsActivity) getActivity()).popBackStack();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue