mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-02-25 10:29:45 +02:00
Fix issue #350 - Issue with URLs when transformed to alternative front-end.
This commit is contained in:
parent
a7008cdaa2
commit
9ceb991758
1 changed files with 1 additions and 2 deletions
|
@ -202,10 +202,9 @@ public class SpannableHelper {
|
||||||
//If URL has been transformed
|
//If URL has been transformed
|
||||||
if (newURL.compareTo(url) != 0) {
|
if (newURL.compareTo(url) != 0) {
|
||||||
content.replace(matchStart, matchEnd, newURL);
|
content.replace(matchStart, matchEnd, newURL);
|
||||||
offSetTruncate += (newURL.length() - url.length());
|
offSetTruncate -= (newURL.length() - url.length());
|
||||||
matchEnd = matchStart + newURL.length();
|
matchEnd = matchStart + newURL.length();
|
||||||
//The transformed URL was in the list of URLs having a different names
|
//The transformed URL was in the list of URLs having a different names
|
||||||
|
|
||||||
if (urlDetails.containsKey(url)) {
|
if (urlDetails.containsKey(url)) {
|
||||||
urlDetails.put(newURL, urlDetails.get(url));
|
urlDetails.put(newURL, urlDetails.get(url));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue