use of com.stardust.scriptdroid.timing.TimedTask in project Auto.js by hyb1996.
the class TimedTaskSettingActivity method createOrUpdateTimedTask.
private void createOrUpdateTimedTask() {
TimedTask task = createTimedTask();
if (task == null)
return;
if (mTimedTask == null) {
TimedTaskManager.getInstance().addTask(task);
Toast.makeText(this, R.string.text_already_create, Toast.LENGTH_SHORT).show();
} else {
task.setId(mTimedTask.getId());
TimedTaskManager.getInstance().updateTask(task);
}
finish();
}
Aggregations