private void addLeftItems ( ) { // Log.w(TAG,"addLeftItems() {.... (0)"); if ( leftItems . size ( ) == 0 ) { return ; } // Log.w(TAG,"addLeftItems() {.... (1)"); ArrayList < T > currentLeftItems = new ArrayList < T > ( ) ; currentLeftItems . addAll ( leftItems ) ; // Log.w(TAG,"addLeftItems() {.... (2)"); synchronized ( leftItems ) { // Log.w(TAG,"addLeftItems() {.... (3.1)"); leftItems . clear ( ) ; // Log.w(TAG,"addLeftItems() {.... (3.1)"); } // Log.w(TAG,"addLeftItems() {.... (4)"); for ( T currentLeftItem : currentLeftItems ) { // Log.w(TAG,"addLeftItems() {.... (5.1)"); addItem ( currentLeftItem ) ; // Log.w(TAG,"addLeftItems() {.... (5.2)"); } }
add items that were not clustered in last isClustering .