Fix assistant remote provisioning
This commit is contained in:
parent
cc5cec596f
commit
d23153f7c3
1 changed files with 11 additions and 1 deletions
|
@ -138,8 +138,18 @@ private static AssistantActivity instance;
|
|||
accountCreator.setListener(this);
|
||||
|
||||
countryListAdapter = new CountryListAdapter(getApplicationContext());
|
||||
|
||||
mListener = new LinphoneCoreListenerBase() {
|
||||
|
||||
@Override
|
||||
public void configuringStatus(LinphoneCore lc, final LinphoneCore.RemoteProvisioningState state, String message) {
|
||||
if (progress != null) progress.dismiss();
|
||||
if (state == LinphoneCore.RemoteProvisioningState.ConfiguringSuccessful) {
|
||||
goToLinphoneActivity();
|
||||
} else if (state == LinphoneCore.RemoteProvisioningState.ConfiguringFailed) {
|
||||
Toast.makeText(AssistantActivity.instance(), getString(R.string.remote_provisioning_failure), Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registrationState(LinphoneCore lc, LinphoneProxyConfig cfg, RegistrationState state, String smessage) {
|
||||
if (remoteProvisioningInProgress) {
|
||||
|
|
Loading…
Reference in a new issue