Browse Source

v16.6-a5 enhance mention handling in end

legacy v16.6-a5
Austin Huang 5 years ago
parent
commit
854c03e79c
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 2
      app/build.gradle
  2. 5
      app/src/main/java/awais/instagrabber/utils/Utils.java

2
app/build.gradle

@ -10,7 +10,7 @@ android {
targetSdkVersion 29
versionCode 27
versionName '16.6-a4'
versionName '16.6-a5'
multiDexEnabled true

5
app/src/main/java/awais/instagrabber/utils/Utils.java

@ -222,6 +222,8 @@ public final class Utils {
break;
}
}
else if (currChar == '.')
break;
// for merged hashtags
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 != '~'
);
final int endLen = currChar != '#' ? i : i + 1; // for merged hashtags
stringBuilder.setSpan(new CommentMentionClickSpan(), startLen,

Loading…
Cancel
Save