widget: fix inconsistent cover corner radius

Somehow the line that makes the corner sizes consistent was lost.
This commit is contained in:
Alexander Capehart
2023-03-25 15:54:06 -06:00
parent 67e67ca1d0
commit 5de1e221ac
@@ -95,7 +95,9 @@ constructor(
return if (cornerRadius > 0) { return if (cornerRadius > 0) {
// If rounded, reduce the bitmap size further to obtain more pronounced // If rounded, reduce the bitmap size further to obtain more pronounced
// rounded corners. // rounded corners.
builder.transformations( builder
.size(getSafeRemoteViewsImageSize(context, 10f))
.transformations(
SquareFrameTransform.INSTANCE, SquareFrameTransform.INSTANCE,
RoundedCornersTransformation(cornerRadius.toFloat())) RoundedCornersTransformation(cornerRadius.toFloat()))
} else { } else {