From 59ff4c085407c5699fdd4c2f3f2e17d40a3bd80e Mon Sep 17 00:00:00 2001 From: Mario Zorz Date: Fri, 29 Mar 2019 09:39:18 -0300 Subject: [PATCH] initializing var to null as default, to accept original change --- aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt b/aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt index 00f60353e..3bb9664ce 100644 --- a/aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt +++ b/aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt @@ -457,7 +457,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown // problem is fixed at the Android OS level as described in the following url // https://android-review.googlesource.com/c/platform/frameworks/base/+/634929 val dynamicLayoutCrashPreventer = InputFilter { source, start, end, dest, dstart, dend -> - var temp = source + var temp : CharSequence? = null if (!bypassCrashPreventerInputFilter && dstart == dend && dest.length > dend+1) { // dstart == dend means this is an insertion // if there are any images right after the destination position, hack the text