mirror of
https://codeberg.org/tom79/Fedilab
synced 2025-02-02 04:16:56 +01:00
Fix issue #350 - Issue with URLs when transformed to alternative front-end.
This commit is contained in:
parent
a7008cdaa2
commit
9ceb991758
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user