Skip to content

Commit f48e214

Browse files
committed
Removed fix for chromebook devices (refresh text on layout change) which introduced nasty bug on editor
1 parent 167ffe6 commit f48e214

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -452,17 +452,6 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
452452
isViewInitialized = true
453453
}
454454

455-
override fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int) {
456-
// layout is changing when app screen is resized (on Chromebooks, etc.)
457-
// we need to refresh text to reflect visual changes
458-
if (changed) {
459-
post {
460-
refreshText(false)
461-
}
462-
}
463-
super.onLayout(changed, left, top, right, bottom)
464-
}
465-
466455
// Setup the keyListener(s) for Backspace and Enter key.
467456
// Backspace: If listener does return false we remove the style here
468457
// Enter: Ask the listener if we need to insert or not the char

0 commit comments

Comments
 (0)