Hiding LIME & group chat feature if default proxy config doesn't supports it + cleaning non_localizable_custom
This commit is contained in:
parent
ab5951ef25
commit
9402df1a0e
3 changed files with 104 additions and 103 deletions
|
@ -13,6 +13,7 @@
|
|||
<bool name="show_statusbar_only_on_dialer">false</bool>
|
||||
<bool name="force_use_of_linphone_friends">false</bool>
|
||||
<bool name="use_linphone_tag">true</bool>
|
||||
<bool name="hide_bottom_bar_on_second_level_views">true</bool>
|
||||
|
||||
<!-- Time -->
|
||||
<string name="history_date_format">EEE, d MMM</string>
|
||||
|
|
|
@ -167,9 +167,9 @@ public class ChatCreationFragment extends Fragment implements View.OnClickListen
|
|||
mSecurityToggle.setChecked(mChatRoomEncrypted);
|
||||
ProxyConfig lpc = LinphoneManager.getLc().getDefaultProxyConfig();
|
||||
if ((mChatRoomSubject != null && mChatRoomAddress != null) || (lpc == null || lpc.getConferenceFactoryUri() == null)) {
|
||||
mSecurityToggle.setEnabled(false);
|
||||
mSecurityToggleOn.setOnClickListener(null);
|
||||
mSecurityToggleOff.setOnClickListener(null);
|
||||
mSecurityToggle.setVisibility(View.GONE);
|
||||
mSecurityToggleOn.setVisibility(View.GONE);
|
||||
mSecurityToggleOff.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity().getApplicationContext());
|
||||
|
|
|
@ -212,7 +212,7 @@ public class ChatListFragment extends Fragment implements ContactsUpdatedListene
|
|||
refreshChatRoomsList();
|
||||
|
||||
ProxyConfig lpc = lc.getDefaultProxyConfig();
|
||||
mNewGroupDiscussionButton.setEnabled(lpc != null && lpc.getConferenceFactoryUri() != null);
|
||||
mNewGroupDiscussionButton.setVisibility((lpc != null && lpc.getConferenceFactoryUri() != null) ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue