public void deselectAllSpans ( ) { mBlockCompletion = true ; Editable text = getText ( ) ; MentionSpan [ ] spans = text . getSpans ( 0 , text . length ( ) , MentionSpan . class ) ; for ( MentionSpan span : spans ) { if ( span . isSelected ( ) ) { span . setSelected ( false ) ; updateSpan ( span ) ; } } mBlockCompletion = false ; }
Deselects any spans in the editor that are currently selected .