List of usage examples for android.support.v4.app ActionBar.Tab toString
public String toString()
From source file:com.xandy.calendar.AllInOneActivity.java
@Override public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) { Log.w(TAG, "TabSelected AllInOne=" + this + " finishing:" + this.isFinishing()); if (tab == mDayTab && mCurrentView != ViewType.DAY) { mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.DAY); } else if (tab == mWeekTab && mCurrentView != ViewType.WEEK) { mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.WEEK); } else if (tab == mMonthTab && mCurrentView != ViewType.MONTH) { mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.MONTH); } else if (tab == mAgendaTab && mCurrentView != ViewType.AGENDA) { mController.sendEvent(this, EventType.GO_TO, null, null, -1, ViewType.AGENDA); } else {/*ww w.ja v a2 s .c o m*/ Log.w(TAG, "TabSelected event from unknown tab: " + (tab == null ? "null" : tab.getText())); Log.w(TAG, "CurrentView:" + mCurrentView + " Tab:" + tab.toString() + " Day:" + mDayTab + " Week:" + mWeekTab + " Month:" + mMonthTab + " Agenda:" + mAgendaTab); } }