Fix for AST-419 - google task list deleting now deletes list in Astrid

pull/14/head
Tim Su 15 years ago
parent 08a9aa6bde
commit 06f5f76302

@ -58,8 +58,12 @@ public class GtasksListService {
return LIST_NOT_FOUND;
}
@SuppressWarnings("nls")
public void updateLists(GoogleTaskListInfo[] remoteLists) {
readLists();
for(StoreObject list : lists)
list.setValue(StoreObject.TYPE, "");
for(int i = 0; i < remoteLists.length; i++) {
GoogleTaskListInfo remote = remoteLists[i];
@ -82,6 +86,11 @@ public class GtasksListService {
storeObjectDao.persist(local);
}
// check for lists that aren't on remote server
for(StoreObject list : lists)
if(list.getValue(StoreObject.TYPE).equals(""))
storeObjectDao.delete(list.getId());
clearListCache();
}

Loading…
Cancel
Save