Commit 5e619d7e authored by Thomas's avatar Thomas
Browse files

Rename Nitter instances

parent 5de4360f
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -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
+2 −1
Original line number Diff line number Diff line
@@ -6,3 +6,4 @@ Changed:
Fixed:
- Nav buttons not visible with media (Light theme)
- Status bar with Android 5
- Fix links not clickable
 No newline at end of file