public final CharSequence [ ] getSelectedEntries ( ) { List < Integer > indices = indicesOf ( values ) ; Collections . sort ( indices ) ; if ( ! indices . isEmpty ( ) ) { CharSequence [ ] selectedEntries = new CharSequence [ indices . size ( ) ] ; int currentIndex = 0 ; for ( int index : indices ) { selectedEntries [ currentIndex ] = getEntries ( ) [ index ] ; currentIndex ++ ; } return selectedEntries ; } return null ; }
Returns the entries the currently persisted values of the preference belong to .