@ UiThread public void addObjectSync ( T object ) { if ( object == null ) return ; if ( shouldIgnoreToken ( object ) ) { if ( listener != null ) { listener . onTokenIgnored ( object ) ; } return ; } if ( tokenLimit != - 1 && getObjects ( ) . size ( ) == tokenLimit ) return ; insertSpan ( buildSpanForObject ( object ) ) ; if ( getText ( ) != null && isFocused ( ) ) setSelection ( getText ( ) . length ( ) ) ; }
Append a token object to the object list . May only be called from the main thread .