1
0
mirror of https://codeberg.org/tom79/Fedilab synced 2025-02-02 12:27:17 +01:00

Fix issue #350 - Issue with URLs when transformed to alternative front-end.

This commit is contained in:
Thomas 2022-10-16 16:35:32 +02:00
parent a7008cdaa2
commit 9ceb991758

View File

@ -202,10 +202,9 @@ public class SpannableHelper {
//If URL has been transformed
if (newURL.compareTo(url) != 0) {
content.replace(matchStart, matchEnd, newURL);
offSetTruncate += (newURL.length() - url.length());
offSetTruncate -= (newURL.length() - url.length());
matchEnd = matchStart + newURL.length();
//The transformed URL was in the list of URLs having a different names
if (urlDetails.containsKey(url)) {
urlDetails.put(newURL, urlDetails.get(url));
}