Пример #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);
 }