private AbsListView getCurrentListView() {
   final int position = mViewPager.getCurrentItem();
   switch (getRtlPosition(position)) {
     case TAB_INDEX_SPEED_DIAL:
       return mSpeedDialFragment == null ? null : mSpeedDialFragment.getListView();
     case TAB_INDEX_RECENTS:
       return mRecentsFragment == null ? null : mRecentsFragment.getListView();
     case TAB_INDEX_ALL_CONTACTS:
       return mAllContactsFragment == null ? null : mAllContactsFragment.getListView();
   }
   throw new IllegalStateException("No fragment at position " + position);
 }