Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void refreshItemsFromTable() {
- // Pobranie wszystkich zadań nie oznaczonych flagą 'completed'
- // i dodanie ich do adaptera listy.
- mToDoTable.where().field("complete").eq(val(false)).execute(new TableQueryCallback<ToDoItem>() {
- public void onCompleted(List<ToDoItem> result, int count, Exception exception, ServiceFilterResponse response) {
- if (exception == null) {
- mAdapter.clear();
- for (ToDoItem item : result) {
- mAdapter.add(item);
- }
- } else {
- createAndShowDialog(exception, "Error");
- }
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement