mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 03:48:08 +00:00
Fix toggle button
This commit is contained in:
parent
25617fa610
commit
c24c43b86c
1 changed files with 8 additions and 3 deletions
|
|
@ -404,10 +404,14 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O
|
|||
private void changeContactsToggle() {
|
||||
if (onlyDisplayLinphoneContacts) {
|
||||
allContacts.setEnabled(true);
|
||||
allContactsSelected.setVisibility(View.INVISIBLE);
|
||||
linphoneContacts.setEnabled(false);
|
||||
linphoneContactsSelected.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
allContacts.setEnabled(false);
|
||||
allContactsSelected.setVisibility(View.VISIBLE);
|
||||
linphoneContacts.setEnabled(true);
|
||||
linphoneContactsSelected.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -427,18 +431,19 @@ public class ContactsListFragment extends Fragment implements OnClickListener, O
|
|||
public void onResume() {
|
||||
instance = this;
|
||||
super.onResume();
|
||||
|
||||
|
||||
if (editConsumed) {
|
||||
editOnClick = false;
|
||||
sipAddressToAdd = null;
|
||||
}
|
||||
|
||||
|
||||
if (LinphoneActivity.isInstanciated()) {
|
||||
LinphoneActivity.instance().selectMenu(FragmentsAvailable.CONTACTS_LIST);
|
||||
LinphoneActivity.instance().hideTabBar(false);
|
||||
onlyDisplayLinphoneContacts = ContactsManager.getInstance().isLinphoneContactsPrefered();
|
||||
}
|
||||
|
||||
changeContactsToggle();
|
||||
|
||||
invalidate();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue