Skip to content

Commit 59ff4c0

Browse files
committed
initializing var to null as default, to accept original change
1 parent 1ff08ac commit 59ff4c0

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
@@ -457,7 +457,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
457457
// problem is fixed at the Android OS level as described in the following url
458458
// https://android-review.googlesource.com/c/platform/frameworks/base/+/634929
459459
val dynamicLayoutCrashPreventer = InputFilter { source, start, end, dest, dstart, dend ->
460-
var temp = source
460+
var temp : CharSequence? = null
461461
if (!bypassCrashPreventerInputFilter && dstart == dend && dest.length > dend+1) {
462462
// dstart == dend means this is an insertion
463463
// if there are any images right after the destination position, hack the text

0 commit comments

Comments
 (0)