@Override public void onResume() { super.onResume(); if (LinphoneActivity.isInstanciated()) { LinphoneActivity.instance().selectMenu(FragmentsAvailable.CONTACT); if (getResources().getBoolean(R.bool.show_statusbar_only_on_dialer)) { LinphoneActivity.instance().hideStatusBar(); } } contact.refresh(getActivity().getContentResolver()); if (contact.getName() == null || contact.getName().equals("")) { // Contact has been deleted, return LinphoneActivity.instance().displayContacts(false); } displayContact(inflater, view); }
public void changeDisplayedContact(Contact newContact) { contact = newContact; contact.refresh(getActivity().getContentResolver()); displayContact(inflater, view); }