Skip to content

Commit 800e5a3

Browse files
authored
Merge pull request #478 from wordpress-mobile/issue/451-fixing-parcelable-unmarshaling-crash
issue/451 fixing OOB when unmarshalling URL span
2 parents 0fc0bf1 + ec67514 commit 800e5a3

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecURLSpan.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
package org.wordpress.aztec.spans
1919

20-
import android.os.Parcel
2120
import android.text.TextPaint
2221
import android.text.style.URLSpan
2322
import org.wordpress.aztec.AztecAttributes
@@ -45,17 +44,6 @@ class AztecURLSpan : URLSpan, IAztecInlineSpan {
4544
this.linkUnderline = linkStyle.linkUnderline
4645
}
4746

48-
constructor(src: Parcel) : super(src) {
49-
this.linkColor = src.readInt()
50-
this.linkUnderline = src.readInt() != 0
51-
}
52-
53-
override fun writeToParcel(dest: Parcel, flags: Int) {
54-
super.writeToParcel(dest, flags)
55-
dest.writeInt(linkColor)
56-
dest.writeInt(if (linkUnderline) 1 else 0)
57-
}
58-
5947
override fun updateDrawState(ds: TextPaint) {
6048
ds.color = if (linkColor != 0) linkColor else ds.linkColor
6149
ds.isUnderlineText = linkUnderline

0 commit comments

Comments
 (0)