Skip to content

Commit f4e6dca

Browse files
committed
Fix accidental override of getSize
1 parent 5cebfd8 commit f4e6dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecDynamicImageSpan.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ abstract class AztecDynamicImageSpan(val context: Context, protected var imageDr
6666
}
6767
}
6868

69-
override fun getSize(paint: Paint?, text: CharSequence?, start: Int, end: Int, metrics: Paint.FontMetricsInt?): Int {
69+
override fun getSize(paint: Paint, text: CharSequence?, start: Int, end: Int, metrics: Paint.FontMetricsInt?): Int {
7070
val sizeRect = adjustBounds(start)
7171
if (metrics != null && sizeRect.height() > 0) {
7272

0 commit comments

Comments
 (0)