Skip to content

Commit 4b24743

Browse files
committed
Rename TasksFragment to TasksController
1 parent b2ec3a6 commit 4b24743

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/MainActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import com.bluelinelabs.conductor.Router;
3232
import com.bluelinelabs.conductor.RouterTransaction;
3333
import com.example.android.architecture.blueprints.todoapp.statistics.StatisticsController;
34-
import com.example.android.architecture.blueprints.todoapp.tasks.TasksFragment;
34+
import com.example.android.architecture.blueprints.todoapp.tasks.TasksController;
3535
import com.example.android.architecture.blueprints.todoapp.util.EspressoIdlingResource;
3636

3737
/**
@@ -67,7 +67,7 @@ protected void onCreate(Bundle savedInstanceState) {
6767

6868
router = Conductor.attachRouter(this, mContainer, savedInstanceState);
6969
if (!router.hasRootController()) {
70-
router.setRoot(RouterTransaction.with(new TasksFragment()));
70+
router.setRoot(RouterTransaction.with(new TasksController()));
7171
}
7272
}
7373

@@ -96,7 +96,7 @@ private void setupDrawerContent(NavigationView navigationView) {
9696
public boolean onNavigationItemSelected(MenuItem menuItem) {
9797
switch (menuItem.getItemId()) {
9898
case R.id.list_navigation_menu_item:
99-
router.setRoot(RouterTransaction.with(new TasksFragment()));
99+
router.setRoot(RouterTransaction.with(new TasksController()));
100100
break;
101101
case R.id.statistics_navigation_menu_item:
102102
router.setRoot(RouterTransaction.with(new StatisticsController()));
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
/**
5555
* Display a grid of {@link Task}s. User can choose to view all, active or completed tasks.
5656
*/
57-
public class TasksFragment extends BaseController implements TasksContract.View {
57+
public class TasksController extends BaseController implements TasksContract.View {
5858

5959
private static final String CURRENT_FILTERING_KEY = "CURRENT_FILTERING_KEY";
6060

@@ -76,14 +76,14 @@ public class TasksFragment extends BaseController implements TasksContract.View
7676

7777
private TextView mFilteringLabelView;
7878

79-
public TasksFragment() {
79+
public TasksController() {
8080
}
8181

8282
/**
8383
* This constructor is used by Conductor to recreate the Controller if it has been destroyed.
8484
* @param args The {@link Bundle} object containing the previous state of the Controller.
8585
*/
86-
public TasksFragment(Bundle args) {
86+
public TasksController(Bundle args) {
8787
super(args);
8888
mCurrentFiltering = (TasksFilterType) args.getSerializable(CURRENT_FILTERING_KEY);
8989
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import java.util.List;
3232

3333
/**
34-
* Listens to user actions from the UI ({@link TasksFragment}), retrieves the data and updates the
34+
* Listens to user actions from the UI ({@link TasksController}), retrieves the data and updates the
3535
* UI as required.
3636
*/
3737
public class TasksPresenter implements TasksContract.Presenter {

0 commit comments

Comments
 (0)