File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 3131import com .bluelinelabs .conductor .Router ;
3232import com .bluelinelabs .conductor .RouterTransaction ;
3333import 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 ;
3535import 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 ()));
Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change 3131import 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 */
3737public class TasksPresenter implements TasksContract .Presenter {
You can’t perform that action at this time.
0 commit comments