Do not show correspondent asked for video dialog while in call if video disabled globally + fixed crash
This commit is contained in:
parent
112bbcf899
commit
6df4f6f7bd
2 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue