Skip to content

Commit fd3284c

Browse files
committed
fixed lint warning
1 parent 59ff4c0 commit fd3284c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
458458
// https://android-review.googlesource.com/c/platform/frameworks/base/+/634929
459459
val dynamicLayoutCrashPreventer = InputFilter { source, start, end, dest, dstart, dend ->
460460
var temp : CharSequence? = null
461-
if (!bypassCrashPreventerInputFilter && dstart == dend && dest.length > dend+1) {
461+
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
464464
val spans = dest.getSpans(dstart, dend+1, AztecImageSpan::class.java)
@@ -473,7 +473,6 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
473473
// use Spannable to copy / keep the current spans
474474
temp = SpannableStringBuilder(source).append(dest.subSequence(dend, dend+1))
475475

476-
477476
// delete the original AztecImageSpan
478477
text.delete(dend, dend+1)
479478
// now insert both the new insertion _and_ the original AztecImageSpan

0 commit comments

Comments
 (0)