Skip to content

Commit d06e7ba

Browse files
committed
Merge branch 'master' into commonPresenterLifecycle
2 parents 158497d + 1706eda commit d06e7ba

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

todo-mvp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/addedittask/AddEditTaskPresenter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void populateTask(String taskId) {
6666

6767
@Override
6868
public void onTaskLoaded(Task task) {
69-
// The View may not be on screen anymore when this callback is returned
69+
// The view may not be able to handle UI updates anymore
7070
if (mAddTaskView.isActive()) {
7171
mAddTaskView.setTitle(task.getTitle());
7272
mAddTaskView.setDescription(task.getDescription());
@@ -75,7 +75,7 @@ public void onTaskLoaded(Task task) {
7575

7676
@Override
7777
public void onDataNotAvailable() {
78-
// The View may not be on screen anymore when this callback is returned
78+
// The view may not be able to handle UI updates anymore
7979
if (mAddTaskView.isActive()) {
8080
mAddTaskView.showEmptyTaskError();
8181
}

todo-mvp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/statistics/StatisticsPresenter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void onTasksLoaded(List<Task> tasks) {
7777
activeTasks += 1;
7878
}
7979
}
80-
// The View may not be on screen anymore when this callback is returned
80+
// The view may not be able to handle UI updates anymore
8181
if (!mStatisticsView.isActive()) {
8282
return;
8383
}
@@ -88,7 +88,7 @@ public void onTasksLoaded(List<Task> tasks) {
8888

8989
@Override
9090
public void onDataNotAvailable() {
91-
// The View may not be on screen anymore when this callback is returned
91+
// The view may not be able to handle UI updates anymore
9292
if (!mStatisticsView.isActive()) {
9393
return;
9494
}

todo-mvp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/taskdetail/TaskDetailPresenter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private void openTask() {
6262
mTasksRepository.getTask(mTaskId, new TasksDataSource.GetTaskCallback() {
6363
@Override
6464
public void onTaskLoaded(Task task) {
65-
// The View may not be on screen anymore when this callback is returned
65+
// The view may not be able to handle UI updates anymore
6666
if (!mTaskDetailView.isActive()) {
6767
return;
6868
}
@@ -76,7 +76,7 @@ public void onTaskLoaded(Task task) {
7676

7777
@Override
7878
public void onDataNotAvailable() {
79-
// The View may not be on screen anymore when this callback is returned
79+
// The view may not be able to handle UI updates anymore
8080
if (!mTaskDetailView.isActive()) {
8181
return;
8282
}

todo-mvp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksPresenter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public void onTasksLoaded(List<Task> tasks) {
119119
break;
120120
}
121121
}
122-
// The View may not be on screen anymore when this callback is returned
122+
// The view may not be able to handle UI updates anymore
123123
if (!mTasksView.isActive()) {
124124
return;
125125
}
@@ -132,7 +132,7 @@ public void onTasksLoaded(List<Task> tasks) {
132132

133133
@Override
134134
public void onDataNotAvailable() {
135-
// The View may not be on screen anymore when this callback is returned
135+
// The view may not be able to handle UI updates anymore
136136
if (!mTasksView.isActive()) {
137137
return;
138138
}

0 commit comments

Comments
 (0)