Merge branch 'develop' of https://bitbucket.org/tom79/mastodon_etalab into develop

This commit is contained in:
tom79 2017-09-06 07:48:53 +02:00
commit d26ebec568
1 changed files with 5 additions and 0 deletions

View File

@ -356,6 +356,11 @@ public class StatusListAdapter extends BaseAdapter implements OnPostActionInterf
while (matcher.find()){ while (matcher.find()){
String key = "__u" + String.valueOf(i) + "__"; String key = "__u" + String.valueOf(i) + "__";
String value = matcher.group(0); String value = matcher.group(0);
int end = matcher.end();
if (spannableString.charAt(end) == '/') {
text = spannableString.toString().substring(0, end).
concat(spannableString.toString().substring(end+1, spannableString.length()));
}
if( value != null) { if( value != null) {
urlConversion.put(key, value); urlConversion.put(key, value);
text = text.replace(value, key); text = text.replace(value, key);