예제 #1
0
  @Override
  public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);

    if (taskManager != null) taskManager.save(outState);
  }
예제 #2
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   taskManager = new TaskManager();
   if (savedInstanceState != null) taskManager.restore(savedInstanceState);
 }
예제 #3
0
 protected void cleatTaskCount(String taskId) {
   taskManager.cleatTaskCount(taskId);
 }
예제 #4
0
 @Override
 public final int getTaskCount(String taskId) {
   return taskManager.getTaskCount(taskId);
 }
예제 #5
0
 @Override
 public final void removeAllTask(boolean cancelIfRunning) {
   taskManager.removeAllTask(cancelIfRunning);
 }
예제 #6
0
 @Override
 public final void removeTask(String taskId, boolean cancelIfRunning) {
   taskManager.removeTask(taskId, cancelIfRunning);
 }
예제 #7
0
 @Override
 public final void addTask(@SuppressWarnings("rawtypes") WorkTask task) {
   taskManager.addTask(task);
 }