respect invidious settings in notifications

This commit is contained in:
Christian Schneppe 2020-04-02 20:49:58 +02:00
parent f816abb047
commit 6f506d4021
No known key found for this signature in database
GPG key ID: F30B8D686B44D87E

View file

@ -35,6 +35,7 @@ import de.pixart.messenger.entities.Presence;
import de.pixart.messenger.entities.Transferable;
import de.pixart.messenger.services.ExportBackupService;
import de.pixart.messenger.services.XmppConnectionService;
import de.pixart.messenger.ui.util.MyLinkify;
import rocks.xmpp.addr.Jid;
import static de.pixart.messenger.entities.Message.DELETED_MESSAGE_BODY;
@ -316,7 +317,7 @@ public class UIHelper {
return new Pair<>(context.getString(R.string.x_file_offered_for_download,
getFileDescriptionString(context, message)), true);
} else {
SpannableStringBuilder styledBody = new SpannableStringBuilder(body);
SpannableStringBuilder styledBody = new SpannableStringBuilder(MyLinkify.replaceYoutube(context, body));
if (textColor != 0) {
StylingHelper.format(styledBody, 0, styledBody.length() - 1, textColor);
}