Skip to content

Commit 56abccb

Browse files
committed
Addressing internal comments, small changes for consistency and comments
1 parent 7e7420d commit 56abccb

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

todo-mvp-loaders/app/src/androidTestMock/java/com/example/android/architecture/blueprints/todoapp/taskdetail/TaskDetailScreenTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ public void orientationChange_menuAndTaskPersist() {
135135

136136
TestUtils.rotateOrientation(mTaskDetailActivityTestRule);
137137

138+
// Check that the task is shown
138139
onView(withId(R.id.task_detail_title)).check(matches(withText(TASK_TITLE)));
139140
onView(withId(R.id.task_detail_description)).check(matches(withText(TASK_DESCRIPTION)));
140141

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ public TaskDetailPresenter(@Nullable String taskId,
6464

6565
@Override
6666
public void start() {
67-
openTask();
68-
}
69-
70-
private void openTask() {
7167
mLoaderManager.initLoader(TASK_QUERY, null, this);
7268
}
7369

todo-mvp/app/src/androidTestMock/java/com/example/android/architecture/blueprints/todoapp/taskdetail/TaskDetailScreenTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ public void orientationChange_menuAndTaskPersist() {
135135

136136
TestUtils.rotateOrientation(mTaskDetailActivityTestRule);
137137

138+
// Check that the task is shown
138139
onView(withId(R.id.task_detail_title)).check(matches(withText(TASK_TITLE)));
139140
onView(withId(R.id.task_detail_description)).check(matches(withText(TASK_DESCRIPTION)));
140141

0 commit comments

Comments
 (0)