Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void checkItem(ToDoItem item) {
- if (mClient == null) {
- return;
- }
- // Ustawienie flagi 'completed' i aktualizacja tabeli
- item.setComplete(true);
- mToDoTable.update(item, new TableOperationCallback<ToDoItem>() {
- public void onCompleted(ToDoItem entity, Exception exception, ServiceFilterResponse response) {
- if (exception == null) {
- if (entity.isComplete()) {
- mAdapter.remove(entity);
- }
- } else {
- createAndShowDialog(exception, "Error");
- }
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement