@Override public void initializeComponents() { timesheetEntryRecyclerView.setAdapter( new TimesheetReportAdapter(presenter.getDefaultDiaryEntryList())); timesheetEntryRecyclerView.setItemAnimator(new DefaultItemAnimator()); timesheetEntryRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity())); setNoMatchingTimesheetEntriesPromptVisible(presenter.getDefaultDiaryEntryList().isEmpty()); }
@Override public void showFilterDialog() { TimesheetFilterDialogView timesheetFilterDialogView = new TimesheetFilterDialogView(); timesheetFilterDialogView.setOnTimesheetFilterListener(presenter); timesheetFilterDialogView.setSelectedAssignment(presenter.getSelectedAssignmentOnFilter()); timesheetFilterDialogView.setSelectedTimeframe(presenter.getSelectedTimeframeOnFilter()); getScreenController().showDialog(timesheetFilterDialogView, TimesheetFilterDialogView.TAG); }