Lines Matching refs:viewType
70 import com.android.calendar.CalendarController.ViewType;
298 mController.sendEvent(this, EventType.GO_TO, time, time, -1, ViewType.CURRENT);
330 int viewType = -1;
334 viewType = icicle.getInt(BUNDLE_KEY_RESTORE_VIEW, -1);
347 if (viewType == -1 || viewType > ViewType.MAX_VALUE) {
348 viewType = Utils.getViewTypeFromIntentAndSharedPref(this);
411 configureActionBar(viewType);
428 initFragments(timeMillis, viewType, icicle);
461 private void configureActionBar(int viewType) {
462 createButtonsSpinner(viewType, mIsTabletConfig);
471 private void createButtonsSpinner(int viewType, boolean tabletConfig) {
473 mActionBarMenuSpinnerAdapter = new CalendarViewAdapter (this, viewType, !tabletConfig);
477 switch (viewType) {
478 case ViewType.AGENDA:
481 case ViewType.DAY:
484 case ViewType.WEEK:
487 case ViewType.MONTH:
527 mController.sendEvent(this, EventType.UPDATE_TITLE, t, t, -1, ViewType.CURRENT,
578 if (mController.getViewType() != ViewType.EDIT) {
587 mController.sendEvent(this, EventType.USER_HOME, null, null, -1, ViewType.CURRENT);
597 if (mCurrentView == ViewType.EDIT) {
599 } else if (mCurrentView == ViewType.AGENDA) {
621 private void initFragments(long timeMillis, int viewType, Bundle icicle) {
623 Log.d(TAG, "Initializing to " + timeMillis + " for view " + viewType);
637 if (!mShowCalendarControls || viewType == ViewType.EDIT) {
643 if (viewType == ViewType.EDIT) {
674 // We set the viewtype so if the user presses back when they are
677 mController.setViewType(viewType);
680 mPreviousView = viewType;
683 setMainPane(ft, R.id.main_pane, viewType, timeMillis, true);
688 if (viewType == ViewType.AGENDA && icicle != null) {
690 icicle.getLong(BUNDLE_KEY_EVENT_ID, -1), viewType);
691 } else if (viewType != ViewType.EDIT) {
692 mController.sendEvent(this, EventType.GO_TO, t, null, -1, viewType);
698 if (mCurrentView == ViewType.EDIT || mBackToPreviousView) {
735 && (mController.getViewType() == ViewType.MONTH ||
736 mController.getViewType() == ViewType.AGENDA)) {
758 int viewType = ViewType.CURRENT;
765 viewType = ViewType.CURRENT;
810 mController.sendEvent(this, EventType.GO_TO, t, null, t, -1, viewType, extras, null, null);
850 FragmentTransaction ft, int viewId, int viewType, long timeMillis, boolean force) {
854 if (!force && mCurrentView == viewType) {
859 boolean doTransition = viewType != ViewType.MONTH && mCurrentView != ViewType.MONTH;
863 if (mCurrentView == ViewType.AGENDA) {
872 if (viewType != mCurrentView) {
875 if (mCurrentView != ViewType.EDIT && mCurrentView > 0) {
878 mCurrentView = viewType;
883 switch (viewType) {
884 case ViewType.AGENDA:
894 case ViewType.DAY:
904 case ViewType.MONTH:
917 case ViewType.WEEK:
933 mActionBarMenuSpinnerAdapter.setMainView(viewType);
943 } else if (viewType != ViewType.AGENDA) {
950 if (viewType != ViewType.AGENDA) {
982 Log.d(TAG, "Adding handler with viewId " + viewId + " and type " + viewType);
1032 if (mShowWeekNum && (mCurrentView == ViewType.WEEK) && mIsTabletConfig
1039 && mCurrentView == ViewType.DAY && mIsTabletConfig) {
1049 } else if (mWeekTextView != null && (!mIsTabletConfig || mCurrentView != ViewType.DAY)) {
1054 && (mCurrentView == ViewType.DAY || mCurrentView == ViewType.WEEK
1055 || mCurrentView == ViewType.AGENDA)
1093 } else if (event.viewType != mController.getPreviousViewType()
1094 && event.viewType != ViewType.EDIT) {
1100 null, R.id.main_pane, event.viewType, event.startTime.toMillis(false), false);
1107 boolean noControlsView = event.viewType == ViewType.MONTH || event.viewType == ViewType.AGENDA;
1134 (mController.getPreviousViewType() == ViewType.MONTH ||
1135 mController.getPreviousViewType() == ViewType.AGENDA)) {
1155 if (mCurrentView == ViewType.AGENDA && mShowEventDetailsWithAgenda) {
1165 event.selectedTime, event.id, ViewType.AGENDA,
1169 event.selectedTime, event.id, ViewType.AGENDA);
1173 // ViewType.AGENDA
1174 if (event.selectedTime != null && mCurrentView != ViewType.AGENDA) {
1176 event.selectedTime, -1, ViewType.CURRENT);
1179 if ((mCurrentView == ViewType.AGENDA && mShowEventInfoFullScreenAgenda) ||
1180 ((mCurrentView == ViewType.DAY || (mCurrentView == ViewType.WEEK) ||
1181 mCurrentView == ViewType.MONTH) && mShowEventInfoFullScreen)){
1232 mController.sendEvent(this, EventType.EVENTS_CHANGED, null, null, -1, ViewType.CURRENT);
1243 mController.sendEvent(this, EventType.SEARCH, null, null, -1, ViewType.CURRENT, 0, query,
1251 if (tab == mDayTab && mCurrentView != ViewType.DAY) {
1252 mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.DAY);
1253 } else if (tab == mWeekTab && mCurrentView != ViewType.WEEK) {
1254 mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.WEEK);
1255 } else if (tab == mMonthTab && mCurrentView != ViewType.MONTH) {
1256 mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.MONTH);
1257 } else if (tab == mAgendaTab && mCurrentView != ViewType.AGENDA) {
1258 mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.AGENDA);
1280 if (mCurrentView != ViewType.DAY) {
1281 mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.DAY);
1285 if (mCurrentView != ViewType.WEEK) {
1286 mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.WEEK);
1290 if (mCurrentView != ViewType.MONTH) {
1291 mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.MONTH);
1295 if (mCurrentView != ViewType.AGENDA) {
1296 mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.AGENDA);