@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if (taskManager != null) taskManager.save(outState); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); taskManager = new TaskManager(); if (savedInstanceState != null) taskManager.restore(savedInstanceState); }
protected void cleatTaskCount(String taskId) { taskManager.cleatTaskCount(taskId); }
@Override public final int getTaskCount(String taskId) { return taskManager.getTaskCount(taskId); }
@Override public final void removeAllTask(boolean cancelIfRunning) { taskManager.removeAllTask(cancelIfRunning); }
@Override public final void removeTask(String taskId, boolean cancelIfRunning) { taskManager.removeTask(taskId, cancelIfRunning); }
@Override public final void addTask(@SuppressWarnings("rawtypes") WorkTask task) { taskManager.addTask(task); }