in client/src/main/java/org/apache/hupa/client/ui/AddressListView.java [147:169]
List<AddressNode> getContactsFromCache() {
String[] contacts = null;
Storage contactStore = Storage.getLocalStorageIfSupported();
if (contactStore != null) {
String contactsString = contactStore
.getItem(MessageListActivity.CONTACTS_STORE);
System.out.println(contactsString);
if (contactsString != null)
contacts = contactsString.replace("[", "").replace("]", "")
.trim().split(",");
}
List<AddressNode> addrs = new ArrayList<AddressNode>();
if (contacts == null || contacts.length == 0) {
return null;
}
for (String contact : contacts) {
addrs.add(new AddressNode(contact, contact));
}
return addrs;
}