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

Commit 95cc34cd authored by Beth Thibodeau's avatar Beth Thibodeau
Browse files

Sanitize text fields

Bug: 180518039
Test: manual, verify no ANR and media displays normally
Change-Id: I1c99e3257107f71eb5049ef19614e2c6836f808c
parent 5079f881
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.systemui.media;

import static android.app.Notification.safeCharSequence;
import static android.provider.Settings.ACTION_MEDIA_CONTROLS_SETTINGS;

import android.app.PendingIntent;
@@ -261,7 +262,7 @@ public class MediaControlPanel {

        // Song name
        TextView titleText = mViewHolder.getTitleText();
        titleText.setText(data.getSong());
        titleText.setText(safeCharSequence(data.getSong()));

        // App title
        TextView appName = mViewHolder.getAppName();
@@ -269,7 +270,7 @@ public class MediaControlPanel {

        // Artist name
        TextView artistText = mViewHolder.getArtistText();
        artistText.setText(data.getArtist());
        artistText.setText(safeCharSequence(data.getArtist()));

        // Transfer chip
        mViewHolder.getSeamless().setVisibility(View.VISIBLE);