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

Commit 6b4d0f51 authored by Mill Chen's avatar Mill Chen Committed by Android Build Coastguard Worker
Browse files

Add default Sound Picker package name

To avoid implicit intents, make intents launch explicitly.

DISABLE_TOPIC_PROTECTOR

Bug: 333344157
Test: Build
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c6a5148aa748a8156e987705a9755be436afe992)
Merged-In: I905c0f3ddaf0f488ff2fc3bf1747b6df0d802504
Change-Id: I905c0f3ddaf0f488ff2fc3bf1747b6df0d802504
parent a0c35819
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -253,6 +253,11 @@
    <!-- Settings intelligence interaction log intent action -->
    <string name="config_settingsintelligence_log_action" translatable="false"></string>

    <!-- Sound picker package name -->
    <string name="config_sound_picker_package_name" translatable="false">
        com.android.soundpicker
    </string>

    <!-- AOSP Emergency app package name -->
    <string name="config_aosp_emergency_package_name" translatable="false">
        com.android.emergency
+2 −1
Original line number Diff line number Diff line
@@ -74,7 +74,8 @@ public class RingtonePreference extends Preference {
                true);
        mShowSilent = a.getBoolean(com.android.internal.R.styleable.RingtonePreference_showSilent,
                true);
        setIntent(new Intent(RingtoneManager.ACTION_RINGTONE_PICKER));
        setIntent(new Intent(RingtoneManager.ACTION_RINGTONE_PICKER)
                .setPackage(context.getString(R.string.config_sound_picker_package_name)));
        setUserId(UserHandle.myUserId());
        a.recycle();
    }