File tree Expand file tree Collapse file tree 1 file changed +8
-22
lines changed
WordPressUtils/src/main/java/org/wordpress/android/util/helpers Expand file tree Collapse file tree 1 file changed +8
-22
lines changed Original file line number Diff line number Diff line change 1717package org .wordpress .android .util .helpers ;
1818
1919import android .os .Parcel ;
20- import android .text .ParcelableSpan ;
21- import android .text .TextPaint ;
22- import android .text .style .CharacterStyle ;
23- import android .text .style .UpdateAppearance ;
20+ import android .text .style .UnderlineSpan ;
2421
25- public class WPUnderlineSpan extends CharacterStyle
26- implements UpdateAppearance , ParcelableSpan {
22+ /**
23+ * WPUnderlineSpan is used as an alternative class to UnderlineSpan. UnderlineSpan is used by EditText auto
24+ * correct, so it can get mixed up with our formatting.
25+ */
26+ public class WPUnderlineSpan extends UnderlineSpan {
2727 public WPUnderlineSpan () {
28+ super ();
2829 }
2930
3031 public WPUnderlineSpan (Parcel src ) {
31- }
32-
33- public int getSpanTypeId () {
34- return 6 ;
35- }
36-
37- public int describeContents () {
38- return 0 ;
39- }
40-
41- public void writeToParcel (Parcel dest , int flags ) {
42- }
43-
44- @ Override
45- public void updateDrawState (TextPaint ds ) {
46- ds .setUnderlineText (true );
32+ super (src );
4733 }
4834}
You can’t perform that action at this time.
0 commit comments