mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix issue #57
This commit is contained in:
parent
5d2c83fab3
commit
b0405ae854
1 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,7 @@ public class SpannableHelper {
|
|||
if (matchEnd > content.toString().length()) {
|
||||
matchEnd = content.toString().length();
|
||||
}
|
||||
if (content.toString().length() > matchEnd || matchStart < 0) {
|
||||
if (content.toString().length() < matchEnd || matchStart < 0) {
|
||||
continue;
|
||||
}
|
||||
final String url = content.toString().substring(matchStart, matchEnd);
|
||||
|
@ -210,7 +210,7 @@ public class SpannableHelper {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (matchStart >= 0 && matchEnd <= content.length() && matchEnd >= matchStart) {
|
||||
if (matchEnd <= content.length() && matchEnd >= matchStart) {
|
||||
content.setSpan(new LongClickableSpan() {
|
||||
@Override
|
||||
public void onLongClick(View view) {
|
||||
|
|
Loading…
Reference in a new issue