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

Commit 447575fc authored by Lais Andrade's avatar Lais Andrade
Browse files

Use string from EXTRA_RINGTONE_TITLE SoundPicker intent

Make sure we display the Intent extras as string, not spannable
char sequences.

Change-Id: Ifd08941179ee809ee038e25be9d92a283e7ab2cc
Fix: 197874968
Test: Launch SoundPicker with CharSequence intent extra
parent 2a4e99a7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ import android.os.UserHandle;
import android.os.UserManager;
import android.provider.MediaStore;
import android.provider.Settings;
import android.text.Html;
import android.util.Log;
import android.util.TypedValue;
import android.view.LayoutInflater;
@@ -253,6 +254,9 @@ public final class RingtonePickerActivity extends AlertActivity implements
            } else {
                p.mTitle = getString(com.android.internal.R.string.ringtone_picker_title);
            }
        } else {
            // Make sure intents don't inject HTML elements.
            p.mTitle = Html.escapeHtml(p.mTitle.toString());
        }

        setupAlert();