mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-10 14:24:05 +01:00
codacy: inefficient use of StringBuffer.toString using call StringBuffer.length instead
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
b07ee434fe
commit
08936279b6
@ -85,7 +85,7 @@ public class MentionAutocompleteCallback implements AutocompleteCallback<Mention
|
||||
item.getId(), item.getLabel());
|
||||
editable.setSpan(mentionChipSpan,
|
||||
range.getStart(),
|
||||
range.getStart() + replacementStringBuilder.toString().length(),
|
||||
range.getStart() + replacementStringBuilder.length(),
|
||||
Spanned.SPAN_INCLUSIVE_INCLUSIVE);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user