Fix color offset on devices with notches.

This commit is contained in:
Alex Hart
2021-10-01 16:09:54 -03:00
committed by Cody Henthorne
parent a385cb0b68
commit 52cfb57d36
9 changed files with 18 additions and 29 deletions

View File

@@ -250,11 +250,8 @@ final class MessageHeaderViewHolder extends RecyclerView.ViewHolder implements G
}
@Override
public @NonNull List<Projection> getColorizerProjections() {
return conversationItem.getColorizerProjections()
.stream()
.map(p -> Projection.translateFromRootToDescendantCoords(p, (ViewGroup) itemView.getParent()))
.collect(Collectors.toList());
public @NonNull List<Projection> getColorizerProjections(@NonNull ViewGroup coordinateRoot) {
return conversationItem.getColorizerProjections(coordinateRoot);
}
private class ExpiresUpdater implements Runnable {