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

Commit 8f5e6063 authored by Arvin Quilao's avatar Arvin Quilao Committed by Dan Pasanen
Browse files

SystemUI: add Notification volume stream title

When linked notification volumes are disabled, the notification
stream becomes visible, but with a non-existent stream title.

Add the stream title for it.

Change-Id: I7ae2aa9f9a8a397a7b13d957ac701bf01668b1e0
parent 38ff3d79
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -118,4 +118,18 @@

    <!-- Path data for circle battery -->
    <string name="battery_circle_path" translatable="false">M 12 3.5 C 16.6944203736 3.5 20.5 7.30557962644 20.5 12 C 20.5 16.6944203736 16.6944203736 20.5 12 20.5 C 7.30557962644 20.5 3.5 16.6944203736 3.5 12 C 3.5 7.30557962644 7.30557962644 3.5 12 3.5 Z</string>

    <!-- Volume stream titles - should match the string-array in AOSP -->
    <string-array name="volume_stream_titles_lineage">
        <item>Call</item> <!-- STREAM_VOICE_CALL -->
        <item>System</item> <!-- STREAM_SYSTEM -->
        <item>Ring</item> <!-- STREAM_RING -->
        <item>Media</item> <!-- STREAM_MUSIC -->
        <item>Alarm</item> <!-- STREAM_ALARM -->
        <item>Notification</item> <!-- STREAM_NOTIFICATION -->
        <item>Bluetooth</item> <!-- STREAM_BLUETOOTH_SCO -->
        <item></item> <!-- STREAM_SYSTEM_ENFORCED -->
        <item></item> <!-- STREAM_DTMF -->
        <item></item> <!-- STREAM_TTS -->
    </string-array>
</resources>
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ public class VolumeDialogController {
        mObserver = new SettingObserver(mWorker);
        mObserver.init();
        mReceiver.init();
        mStreamTitles = mContext.getResources().getStringArray(R.array.volume_stream_titles);
        mStreamTitles = mContext.getResources().getStringArray(R.array.volume_stream_titles_lineage);
        mVibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE);
        mHasVibrator = mVibrator != null && mVibrator.hasVibrator();
    }