Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a23976d authored by Makoto Onuki's avatar Makoto Onuki
Browse files

HTML-decode social update for widget

Also checked other callsites of StreamItemEntry.getText(), which are all okay.

Bug 5185873

Change-Id: I8bc81f847e1d50654b4861d2eb643fd333927270
parent 06dfcefa
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ import android.graphics.Typeface;
import android.net.Uri;
import android.provider.ContactsContract.QuickContact;
import android.provider.ContactsContract.StreamItems;
import android.text.Html;
import android.text.SpannableStringBuilder;
import android.text.TextUtils;
import android.text.style.AbsoluteSizeSpan;
@@ -204,7 +205,7 @@ public class SocialWidgetProvider extends AppWidgetProvider {
        } else {
            // TODO: Rotate between all the stream items?
            StreamItemEntry streamItem = streamItems.get(0);
            CharSequence status = streamItem.getText();
            CharSequence status = Html.fromHtml(streamItem.getText());
            if (status.length() <= SHORT_SNIPPET_LENGTH) {
                sb.append("\n");
            } else {