app/src/main/java/com/adroitdevs/belanja/MainActivity.java
public void onCompleteCheckboxClicked(View view) {
        try {
            Task t = (Task) mTaskAdapter.getItem(view.getId());
            t.setCompleted(!t.isCompleted());
            t = sTasks.updateDocument(t);
            mTaskAdapter.set(view.getId(), t);
        } catch (ConflictException e) {
            throw new RuntimeException(e);
        }
    }
// Onclick check box function, similar to updateTaskAt but without the full reloadTaskFromModel call
Onclick check box function, similar to updateTaskAt but without the full reloadTaskFromModel call
Onclick check box function similar to updateTaskAt but without the full reloadTaskFromModel call
public void onCompleteCheckboxClicked(View view) {
        try {
            Task t = (Task) mTaskAdapter.getItem(view.getId());
            t.setCompleted(!t.isCompleted());
            t = sTasks.updateDocument(t);
            mTaskAdapter.set(view.getId(), t);
        } catch (ConflictException e) {
            throw new RuntimeException(e);
        }
    }
public void onCompleteCheckboxClicked ( View view ) { try { Task t = ( Task ) mTaskAdapter . getItem ( view . getId ( ) ) ; t . setCompleted ( ! t . isCompleted ( ) ) ; t = sTasks . updateDocument ( t ) ; mTaskAdapter . set ( view . getId ( ) , t ) ; } catch ( ConflictException e ) { throw new RuntimeException ( e ) ; } }
Onclick check box function, similar to updateTaskAt but without the full reloadTaskFromModel call
Onclick check box function similar to updateTaskAt but without the full reloadTaskFromModel call