Skip to content

Commit 8992b43

Browse files
authored
Merge branch 'master' into release/v1.3.40
2 parents a26a43e + 3fee0e0 commit 8992b43

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
### Fixed
9292
- Fix for crash on Samsung Clipboard ListView on Android 8.X #795
9393

94+
## [v1.3.21](https://github.com/wordpress-mobile/AztecEditor-Android/releases/tag/v1.3.21)
95+
### Changed
96+
- Some performance improvements, mostly visible via the WPAndroid app https://github.com/wordpress-mobile/gutenberg-mobile/issues/672
97+
9498
## [v1.3.20](https://github.com/wordpress-mobile/AztecEditor-Android/releases/tag/v1.3.20)
9599
### Changed
96100
- Support for `<em>` for italic and using it as default via the formatting toolbar #777

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,12 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
677677
return styles.getFraction(R.styleable.AztecText_preformatBackgroundAlpha, 1, 1, 0f)
678678
}
679679

680+
// We are exposing this method in order to allow subclasses to set their own alpha value
681+
// for preformatted background
682+
open fun getPreformatBackgroundAlpha(styles: TypedArray): Float {
683+
return styles.getFraction(R.styleable.AztecText_preformatBackgroundAlpha, 1, 1, 0f)
684+
}
685+
680686
override fun onRestoreInstanceState(state: Parcelable?) {
681687
disableTextChangedListener()
682688

0 commit comments

Comments
 (0)