apradanas / simple-linkable-text

Simple way to create linked text, such as @username or #hashtag, in Android TextView and EditText
Other
74 stars 13 forks source link

Text get set to "" if no link is found #4

Open bastiotutuama opened 8 years ago

bastiotutuama commented 8 years ago

I get empty TextViews if no link is found in the textView. I'm working on a fix. Investigation: In LinkableTextView the text should only be set if the Spannable is not null

public LinkableTextView build() { this.mLinkModifier.build(); //Check if spannable is not null this.setText(this.mLinkModifier.getSpannable()); return this; }

samarti commented 8 years ago

+1

MallikaKhullar commented 7 years ago

+1