mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-27 05:03:28 +00:00
Highlight all the message search matches.
It is expected that when a user search for a message, that all the matches within the same messages are highlighted (if there are more than one match) not just the first match. This is also consistent with how the search in the desktop app is implemented. Resolves #13960
This commit is contained in:
@@ -414,7 +414,7 @@ open class V2ConversationItemTextOnlyViewHolder<Model : MappingModel<Model>>(
|
||||
linkifyMessageBody(styledText)
|
||||
}
|
||||
|
||||
styledText = SearchUtil.getHighlightedSpan(Locale.getDefault(), STYLE_FACTORY, styledText, conversationContext.searchQuery, SearchUtil.STRICT)
|
||||
styledText = SearchUtil.getHighlightedSpan(Locale.getDefault(), STYLE_FACTORY, styledText, conversationContext.searchQuery, SearchUtil.MATCH_ALL)
|
||||
if (record.hasExtraText()) {
|
||||
binding.body.setOverflowText(getLongMessageSpan())
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user