public boolean onBackPressed() { LinearLayout l = (LinearLayout) m_overview.findViewById(R.id.pop_up); if (l != null && l.getVisibility() == View.VISIBLE && currentMonth != null) { currentMonth.getGridAdapter().updateContent(); currentMonth.onBackPressed(); String title = DateFormat.format("MMMM yyyy", currentMonth.m_gridAdapter.getCalendarCurrentMonth()) .toString() .toUpperCase(); activity.getSupportActionBar().setTitle(title); return true; } return false; }
@Override public void onPageSelected(int position) { CalendarFragment item = fragmentsCtrl.getFragment(position); item.refreshCurPos(); }
@Override public Fragment getItem(int position) { CalendarFragment c = new CalendarFragment(); c.setCurrentMonth(getCalendarFromPosition(position)); return c; }