Skip to content

Commit 606b1b4

Browse files
committed
Fixed test, checkstyle issues.
1 parent a3580a9 commit 606b1b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ 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) {
455+
override fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int) {
456456
// layout is changing when app screen is resized (on Chromebooks, etc.)
457457
// we need to refresh text to reflect visual changes
458458
if (changed) {

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.setText("")
651+
editText.fromHtml("", false)
652652

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

0 commit comments

Comments
 (0)