mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 03:48:08 +00:00
Disable encryption toggle if there is no conference factory on default proxy config
This commit is contained in:
parent
a5287df9c8
commit
c737bc19fc
1 changed files with 2 additions and 1 deletions
|
|
@ -164,7 +164,8 @@ public class ChatCreationFragment extends Fragment implements View.OnClickListen
|
|||
});
|
||||
|
||||
mSecurityToggle.setChecked(mChatRoomEncrypted);
|
||||
if (mChatRoomSubject != null && mChatRoomAddress != null) {
|
||||
ProxyConfig lpc = LinphoneManager.getLc().getDefaultProxyConfig();
|
||||
if ((mChatRoomSubject != null && mChatRoomAddress != null) || (lpc == null || lpc.getConferenceFactoryUri() == null)) {
|
||||
mSecurityToggle.setEnabled(false);
|
||||
mSecurityToggleOn.setOnClickListener(null);
|
||||
mSecurityToggleOff.setOnClickListener(null);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue