mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-06-07 22:00:07 +03:00
Fix #1143 - Fix a crash when scrolling
This commit is contained in:
parent
916fe40381
commit
90da257037
1 changed files with 1 additions and 1 deletions
|
@ -235,10 +235,10 @@ public class SpannableHelper {
|
||||||
String url = span.getURL();
|
String url = span.getURL();
|
||||||
int start = content.getSpanStart(span);
|
int start = content.getSpanStart(span);
|
||||||
int end = content.getSpanEnd(span);
|
int end = content.getSpanEnd(span);
|
||||||
boolean sameContent = (content.subSequence(start,end).toString().trim().equals(url.trim()));
|
|
||||||
if (start < 0 || end > content.length()) {
|
if (start < 0 || end > content.length()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
boolean sameContent = (content.subSequence(start,end).toString().trim().equals(url.trim()));
|
||||||
content.removeSpan(span);
|
content.removeSpan(span);
|
||||||
//Get the matching word associated to the URL
|
//Get the matching word associated to the URL
|
||||||
String word = content.subSequence(start, end).toString();
|
String word = content.subSequence(start, end).toString();
|
||||||
|
|
Loading…
Reference in a new issue