mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-11 14:54:09 +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());
|
item.getId(), item.getLabel());
|
||||||
editable.setSpan(mentionChipSpan,
|
editable.setSpan(mentionChipSpan,
|
||||||
range.getStart(),
|
range.getStart(),
|
||||||
range.getStart() + replacementStringBuilder.toString().length(),
|
range.getStart() + replacementStringBuilder.length(),
|
||||||
Spanned.SPAN_INCLUSIVE_INCLUSIVE);
|
Spanned.SPAN_INCLUSIVE_INCLUSIVE);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user