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);
|
mStatus.refreshStatusItems(call);
|
||||||
}
|
}
|
||||||
} else if (state == State.UpdatedByRemote) {
|
} 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();
|
boolean videoEnabled = LinphonePreferences.instance().isVideoEnabled();
|
||||||
if (!videoEnabled) {
|
if (!videoEnabled) {
|
||||||
acceptCallUpdate(false);
|
acceptCallUpdate(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean remoteVideo = call.getRemoteParams().videoEnabled();
|
boolean remoteVideo = call.getRemoteParams().videoEnabled();
|
||||||
|
|
|
@ -259,6 +259,10 @@ public class AccountSettingsFragment extends Fragment {
|
||||||
new SettingListenerBase() {
|
new SettingListenerBase() {
|
||||||
@Override
|
@Override
|
||||||
public void onTextValueChanged(String newValue) {
|
public void onTextValueChanged(String newValue) {
|
||||||
|
if (newValue.isEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (mAuthInfo != null) {
|
if (mAuthInfo != null) {
|
||||||
mAuthInfo.setDomain(newValue);
|
mAuthInfo.setDomain(newValue);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue