Skip to content

Commit 5aaeef2

Browse files
committed
Make minScreenSize variable a val
1 parent 1270ace commit 5aaeef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class AztecText : AppCompatAutoCompleteTextView, TextWatcher, UnknownHtmlSpan.On
240240
styles.recycle()
241241

242242
// set the pictures max size to the min of screen width/height and DEFAULT_IMAGE_WIDTH
243-
var minScreenSize = Math.min(context.resources.displayMetrics.widthPixels,
243+
val minScreenSize = Math.min(context.resources.displayMetrics.widthPixels,
244244
context.resources.displayMetrics.heightPixels)
245245
maxImagesWidth = Math.min(minScreenSize, DEFAULT_IMAGE_WIDTH)
246246

0 commit comments

Comments
 (0)