private Object[] getFastScrollDialogLabels() {
        Collection<Object> sectionsCollection = mSections.values();
        Object[] objects = sectionsCollection.toArray(new Object[sectionsCollection.size()]);
        if (VERSION.SDK_INT < VERSION_CODES.KITKAT) {
            int max = getMaxIndexerLength();
            for (int i = 0; i < objects.length; i++) {
                if (objects[i].toString().length() >= max) {
                    objects[i] = objects[i].toString().substring(0, max);
                }
            }
        }
        return objects;
    }
private Object [ ] getFastScrollDialogLabels ( ) { Collection < Object > sectionsCollection = mSections . values ( ) ; Object [ ] objects = sectionsCollection . toArray ( new Object [ sectionsCollection . size ( ) ] ) ; if ( VERSION . SDK_INT < VERSION_CODES . KITKAT ) { int max = getMaxIndexerLength ( ) ; for ( int i = 0 ; i < objects . length ; i ++ ) { if ( objects [ i ] . toString ( ) . length ( ) >= max ) { objects [ i ] = objects [ i ] . toString ( ) . substring ( 0 , max ) ; } } } return objects ; }
@return The values which for the sections which will be shown in the fast scroll dialog.
As the only a max of three letters can fit in this dialog before KitKat,
the string value will be trimmed according to to length specified in getMaxIndexerLength().