Skip to content

Commit

Permalink
initializing var to null as default, to accept original change
Browse files Browse the repository at this point in the history
  • Loading branch information
mzorz committed Mar 29, 2019
1 parent 1ff08ac commit 59ff4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59ff4c0

Please sign in to comment.