public void onEndDateChanged(Date date) { AnalyticsManager.trackClick("end_date"); getView().setEndDate(date); if (date.before(getView().getStartDate())) { calendar.setTime(date); calendar.add(Calendar.DAY_OF_MONTH, -DEFAULT_DAY_RANGE); getView().setStartDate(calendar.getTime()); } reloadStatistics(); }
@Override public void onResume() { super.onResume(); AnalyticsManager.trackScreenView("statistics"); reloadStatistics(); }