コード例 #1
0
  private void changeStatus(int status) {
    task.setStatus(status);
    com.zavitz.mytasks.functions.PersistentUtils.save();

    this.status.setSelected(status);
    percent_complete.setTextQuiet(task.getPercentComplete() + "%");
  }
コード例 #2
0
  public void taskEdited(Task task) {
    task.updateEvent();
    com.zavitz.mytasks.functions.PersistentUtils.save();

    UiApplication.getUiApplication().popScreen(this);
    UiApplication.getUiApplication().pushScreen(new TaskScreen(task));
  }
コード例 #3
0
 public void run() {
   NoteField noteField = (NoteField) getLeafFieldWithFocus();
   task.deleteNote(noteField.note);
   notes.delete(noteField);
   com.zavitz.mytasks.functions.PersistentUtils.save();
 }