forked from mirrors/Fedilab
Rename Nitter instances
This commit is contained in:
parent
5de4360f38
commit
5e619d7e5c
2 changed files with 19 additions and 1 deletions
|
@ -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…
Reference in a new issue