Colours are now taken from a .properties file
[jvcard.git] / src / be / nikiroo / jvcard / tui / panes / ContactList.java
index 078d38e89438a038c33d92513a34b5b4d521f6ae..ae1a65b2ee52ed54bc788d26614677aa67250bb1 100644 (file)
@@ -25,9 +25,6 @@ public class ContactList extends MainContentList {
        private String format = "";
 
        public ContactList(Card card) {
-               super(UiColors.Element.CONTACT_LINE,
-                               UiColors.Element.CONTACT_LINE_SELECTED);
-
                // TODO: should get that in an INI file
                formats.add("NICKNAME@3|FN@+|EMAIL@30");
                formats.add("FN@+|EMAIL@40");
@@ -51,8 +48,8 @@ public class ContactList extends MainContentList {
                this.contacts = new LinkedList<Contact>();
 
                if (card != null) {
-                       for (int i = 0; i < card.getContacts().size(); i++) {
-                               Contact c = card.getContacts().get(i);
+                       for (int i = 0; i < card.size(); i++) {
+                               Contact c = card.get(i);
                                if (filter == null
                                                || c.toString(format).toLowerCase()
                                                                .contains(filter.toLowerCase())) {