v16.6-a5 enhance mention handling in end
This commit is contained in:
parent
e705131dea
commit
854c03e79c
@ -10,7 +10,7 @@ android {
|
|||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
|
|
||||||
versionCode 27
|
versionCode 27
|
||||||
versionName '16.6-a4'
|
versionName '16.6-a5'
|
||||||
|
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
|
|
||||||
|
@ -222,6 +222,8 @@ public final class Utils {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (currChar == '.')
|
||||||
|
break;
|
||||||
|
|
||||||
// for merged hashtags
|
// for merged hashtags
|
||||||
if (currChar == '#') {
|
if (currChar == '#') {
|
||||||
@ -233,7 +235,8 @@ public final class Utils {
|
|||||||
&& currChar != ']' && currChar != '\\' && currChar != '=' && currChar != '-' && currChar != '!'
|
&& currChar != ']' && currChar != '\\' && currChar != '=' && currChar != '-' && currChar != '!'
|
||||||
&& currChar != '$' && currChar != '%' && currChar != '^' && currChar != '&' && currChar != '*'
|
&& currChar != '$' && currChar != '%' && currChar != '^' && currChar != '&' && currChar != '*'
|
||||||
&& currChar != '(' && currChar != ')' && currChar != '{' && currChar != '}' && currChar != '/'
|
&& currChar != '(' && currChar != ')' && currChar != '{' && currChar != '}' && currChar != '/'
|
||||||
&& currChar != '|' && currChar != '?' && currChar != '`' && currChar != '~');
|
&& currChar != '|' && currChar != '?' && currChar != '`' && currChar != '~'
|
||||||
|
);
|
||||||
|
|
||||||
final int endLen = currChar != '#' ? i : i + 1; // for merged hashtags
|
final int endLen = currChar != '#' ? i : i + 1; // for merged hashtags
|
||||||
stringBuilder.setSpan(new CommentMentionClickSpan(), startLen,
|
stringBuilder.setSpan(new CommentMentionClickSpan(), startLen,
|
||||||
|
Loading…
Reference in New Issue
Block a user