Skip to content

Commit 1706eda

Browse files
committed
Small nit regarding docs
1 parent 57103ec commit 1706eda

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
@@ -67,7 +67,7 @@ public void populateTask(String taskId) {
6767

6868
@Override
6969
public void onTaskLoaded(Task task) {
70-
// The View may not be on screen anymore when this callback is returned
70+
// The view may not be able to handle UI updates anymore
7171
if (mAddTaskView.isActive()) {
7272
mAddTaskView.setTitle(task.getTitle());
7373
mAddTaskView.setDescription(task.getDescription());
@@ -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 (mAddTaskView.isActive()) {
8181
mAddTaskView.showEmptyTaskError();
8282
}

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
@@ -73,7 +73,7 @@ public void onTasksLoaded(List<Task> tasks) {
7373
activeTasks += 1;
7474
}
7575
}
76-
// The View may not be on screen anymore when this callback is returned
76+
// The view may not be able to handle UI updates anymore
7777
if (!mStatisticsView.isActive()) {
7878
return;
7979
}
@@ -84,7 +84,7 @@ public void onTasksLoaded(List<Task> tasks) {
8484

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

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
@@ -53,7 +53,7 @@ public void openTask(@Nullable String taskId) {
5353
mTasksRepository.getTask(taskId, new TasksDataSource.GetTaskCallback() {
5454
@Override
5555
public void onTaskLoaded(Task task) {
56-
// The View may not be on screen anymore when this callback is returned
56+
// The view may not be able to handle UI updates anymore
5757
if (!mTaskDetailView.isActive()) {
5858
return;
5959
}
@@ -67,7 +67,7 @@ public void onTaskLoaded(Task task) {
6767

6868
@Override
6969
public void onDataNotAvailable() {
70-
// The View may not be on screen anymore when this callback is returned
70+
// The view may not be able to handle UI updates anymore
7171
if (!mTaskDetailView.isActive()) {
7272
return;
7373
}

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
@@ -106,7 +106,7 @@ public void onTasksLoaded(List<Task> tasks) {
106106
break;
107107
}
108108
}
109-
// The View may not be on screen anymore when this callback is returned
109+
// The view may not be able to handle UI updates anymore
110110
if (!mTasksView.isActive()) {
111111
return;
112112
}
@@ -119,7 +119,7 @@ public void onTasksLoaded(List<Task> tasks) {
119119

120120
@Override
121121
public void onDataNotAvailable() {
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
}

0 commit comments

Comments
 (0)