Skip to content

Commit fcc129f

Browse files
authored
Merge pull request #855 from wordpress-mobile/issue/fix-854-Cant-properly-insert-text-on-Android-7
Issue/fix 854 cant properly insert text on android 7
2 parents 167ffe6 + a99a14b commit fcc129f

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
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

aztec/src/test/kotlin/org/wordpress/aztec/AztecToolbarTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ class AztecToolbarTest {
648648
@Throws(Exception::class)
649649
fun emptySelection() {
650650
editText.fromHtml("<b>bold</b><b><i>italic</i></b>")
651-
editText.fromHtml("", false)
651+
editText.fromHtml("")
652652

653653
Assert.assertTrue(TestUtils.safeEmpty(editText))
654654

0 commit comments

Comments
 (0)