Skip to content

Commit

Permalink
Imply needsLinkHandling when TextView autoLink is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Fs00 authored and maniac103 committed Jul 15, 2024
1 parent 4c4cad8 commit e32b03b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/gh4a/widget/StyleableTextView.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ private void initAttributes(Context context, AttributeSet attrs, int defStyle) {
}
a.recycle();

if (needsLinkHandling) {
boolean isAutoLinkEnabled = getAutoLinkMask() > 0;
if (needsLinkHandling || isAutoLinkEnabled) {
setMovementMethod(CHECKING_LINK_METHOD);
}
}
Expand Down

0 comments on commit e32b03b

Please sign in to comment.