Fix outgoing quote over media.

This commit is contained in:
Alex Hart
2022-06-13 13:05:56 -03:00
committed by Greyson Parrelli
parent ce1983a3b1
commit 2412f6f63a
2 changed files with 22 additions and 0 deletions

View File

@@ -131,6 +131,15 @@ public final class Projection {
return set(x, y + boundary, width, height - boundary, newCorners);
}
public @NonNull Projection insetBottom(int boundary) {
Corners newCorners = this.corners == null ? null : new Corners(this.corners.topLeft,
this.corners.topRight,
0,
0);
return set(x, y, width, height - boundary, newCorners);
}
public static @NonNull Projection relativeToParent(@NonNull ViewGroup parent, @NonNull View view, @Nullable Corners corners) {
Rect viewBounds = new Rect();