mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Fix search result styling for formatting and query highlighting.
This commit is contained in:
@@ -321,7 +321,7 @@ public class SearchRepository {
|
||||
BodyRangeList.Builder builder = BodyRangeList.newBuilder();
|
||||
for (BodyRangeList.BodyRange range : bodyRanges.getRangesList()) {
|
||||
int adjustedStart = range.getStart() - startIndex + startOffset;
|
||||
if (adjustedStart >= 0 && adjustedStart + range.getLength() <= cleanSnippet.length()) {
|
||||
if (adjustedStart >= 0 && adjustedStart + range.getLength() <= bodySnippet.length()) {
|
||||
builder.addRanges(range.toBuilder().setStart(adjustedStart).build());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user