Rename Nitter instances

maths
Thomas 2 years ago
parent 5de4360f38
commit 5e619d7e5c

@ -254,6 +254,14 @@ public class SpannableHelper {
if (urlDetails.containsKey(url)) {
continue;
}
ClickableSpan[] clickableSpans = content.getSpans(matchStart, matchEnd, ClickableSpan.class);
if (clickableSpans != null) {
for (ClickableSpan clickableSpan : clickableSpans) {
content.removeSpan(clickableSpan);
}
}
content.removeSpan(clickableSpans);
String newURL = Helper.transformURL(context, url);
//If URL has been transformed
if (newURL.compareTo(url) != 0) {
@ -514,6 +522,15 @@ public class SpannableHelper {
if (content.toString().length() < matchEnd || matchStart < 0 || matchStart > matchEnd) {
continue;
}
ClickableSpan[] clickableSpans = content.getSpans(matchStart, matchEnd, ClickableSpan.class);
if (clickableSpans != null) {
for (ClickableSpan clickableSpan : clickableSpans) {
content.removeSpan(clickableSpan);
}
}
content.removeSpan(clickableSpans);
if (matchEnd <= content.length()) {
content.setSpan(new LongClickableSpan() {
@Override

@ -5,4 +5,5 @@ Changed:
Fixed:
- Nav buttons not visible with media (Light theme)
- Status bar with Android 5
- Status bar with Android 5
- Fix links not clickable
Loading…
Cancel
Save