Do not show correspondent asked for video dialog while in call if video disabled globally + fixed crash

This commit is contained in:
Sylvain Berfini 2019-04-18 17:01:40 +02:00
parent 112bbcf899
commit 6df4f6f7bd
2 changed files with 6 additions and 1 deletions

View file

@ -240,10 +240,11 @@ public class CallActivity extends LinphoneGenericActivity
mStatus.refreshStatusItems(call);
}
} else if (state == State.UpdatedByRemote) {
// If the correspondent proposes mVideo while audio call
// If the correspondent proposes video while audio call
boolean videoEnabled = LinphonePreferences.instance().isVideoEnabled();
if (!videoEnabled) {
acceptCallUpdate(false);
return;
}
boolean remoteVideo = call.getRemoteParams().videoEnabled();

View file

@ -259,6 +259,10 @@ public class AccountSettingsFragment extends Fragment {
new SettingListenerBase() {
@Override
public void onTextValueChanged(String newValue) {
if (newValue.isEmpty()) {
return;
}
if (mAuthInfo != null) {
mAuthInfo.setDomain(newValue);
} else {