My main problem is that my TokenCompleteTextView is not collapsing. I am debugging and inside the function performCollapse this condition if (count > 0 && countSpans.length == 0) never is fulfilled because of the variable count.
int lastPosition = lastLayout.getLineVisibleEnd(0);
TokenImageSpan[] tokens = text.getSpans(0, lastPosition, TokenImageSpan.class);
int count = objects.size() - tokens.length;
I realized that getLineVisibleEnd is always returning the length of the text look:
My main problem is that my TokenCompleteTextView is not collapsing. I am debugging and inside the function
performCollapse
this conditionif (count > 0 && countSpans.length == 0)
never is fulfilled because of the variablecount
.I realized that
getLineVisibleEnd
is always returning the length of the text look: