public void setSelection ( long identifier ) { if ( identifier == - 1 ) { mAdapter . deselect ( ) ; } int count = mAdapter . getItemCount ( ) ; for ( int i = 0 ; i < count ; i ++ ) { IDrawerItem item = mAdapter . getItem ( i ) ; if ( item . getIdentifier ( ) == identifier && ! item . isSelected ( ) ) { mAdapter . deselect ( ) ; mAdapter . select ( i ) ; } } }
set the selection of the MiniDrawer