Fix updating contact informations

close #44
This commit is contained in:
Erwan Croze 2017-04-24 10:16:30 +02:00
parent aae7439825
commit 7d5adb2e48

View file

@ -112,6 +112,7 @@ public class ContactDetailsFragment extends Fragment implements OnClickListener
TextView contactName = (TextView) view.findViewById(R.id.contact_name); TextView contactName = (TextView) view.findViewById(R.id.contact_name);
contactName.setText(contact.getFullName()); contactName.setText(contact.getFullName());
organization.setText((contact.getOrganization() != null) ? contact.getOrganization() : "");
TableLayout controls = (TableLayout) view.findViewById(R.id.controls); TableLayout controls = (TableLayout) view.findViewById(R.id.controls);
controls.removeAllViews(); controls.removeAllViews();