Skip to content

Commit

Permalink
Fixed lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
khaykov committed Jan 28, 2025
1 parent e19267e commit 9deec09
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
return cursorPosition
}

open fun fromSpanned(spannedText: Spanned, isInit: Boolean = true){
open fun fromSpanned(spannedText: Spanned, isInit: Boolean = true) {
processSpannedContent(spannedText, isInit)
}

Expand All @@ -1554,7 +1554,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
processSpannedContent(spanned)
}

private fun processSpannedContent(spannedText: Spanned, isInit: Boolean = true){
private fun processSpannedContent(spannedText: Spanned, isInit: Boolean = true) {
val builder = SpannableStringBuilder(spannedText)

Format.preProcessSpannedText(builder, isInCalypsoMode)
Expand All @@ -1575,7 +1575,8 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
setSelection(cursorPosition)

if (isInit) {
initialEditorContentParsedSHA256 = calculateInitialHTMLSHA(toPlainHtml(false), initialEditorContentParsedSHA256)
initialEditorContentParsedSHA256 =
calculateInitialHTMLSHA(toPlainHtml(false), initialEditorContentParsedSHA256)
}

loadImages()
Expand Down

0 comments on commit 9deec09

Please sign in to comment.