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

Commit 51ca9197 authored by /e/ robot's avatar /e/ robot
Browse files

Merge remote-tracking branch 'origin/lineage-20.0' into v1-t

parents 7a20aade 2cf6a5a9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -68,4 +68,6 @@
    <string name="accessibility_dpad_left">Curseur gauche</string>
    <string name="accessibility_dpad_right">Curseur droit</string>
    <string name="status_bar_firewall">Pare-feu</string>
    <string name="screenshot_delete_label">Supprimer</string>
    <string name="screenshot_delete_description">Supprimer la capture d\'écran</string>
</resources>
+2 −0
Original line number Diff line number Diff line
@@ -68,4 +68,6 @@
    <string name="accessibility_dpad_left">光标左移</string>
    <string name="accessibility_dpad_right">光标右移</string>
    <string name="status_bar_firewall">防火墙</string>
    <string name="screenshot_delete_label">删除</string>
    <string name="screenshot_delete_description">删除屏幕截图</string>
</resources>
+6 −1
Original line number Diff line number Diff line
@@ -784,6 +784,8 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
                if (mSeparateNotification) {
                    addRow(AudioManager.STREAM_RING, R.drawable.ic_ring_volume,
                            R.drawable.ic_ring_volume_off, true, false);
                    addRow(AudioManager.STREAM_NOTIFICATION, R.drawable.ic_notifications_alert,
                            R.drawable.ic_notifications_silence, true, false);
                } else {
                    addRow(AudioManager.STREAM_RING, R.drawable.ic_volume_ringer,
                            R.drawable.ic_volume_ringer, true, false);
@@ -1772,6 +1774,7 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
    private boolean isExpandableRowH(VolumeRow row) {
        return row != null && row != mDefaultRow && !row.defaultStream
                && (row.stream == STREAM_RING
                        || row.stream == STREAM_NOTIFICATION
                        || row.stream == STREAM_ALARM
                        || row.stream == STREAM_MUSIC);
    }
@@ -2161,6 +2164,7 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
        final boolean isVoiceCallStream = row.stream == AudioManager.STREAM_VOICE_CALL;
        final boolean isA11yStream = row.stream == STREAM_ACCESSIBILITY;
        final boolean isRingStream = row.stream == AudioManager.STREAM_RING;
        final boolean isNotificationStream = row.stream == AudioManager.STREAM_NOTIFICATION;
        final boolean isSystemStream = row.stream == AudioManager.STREAM_SYSTEM;
        final boolean isAlarmStream = row.stream == STREAM_ALARM;
        final boolean isMusicStream = row.stream == AudioManager.STREAM_MUSIC;
@@ -2168,6 +2172,7 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
                && mState.ringerModeInternal == AudioManager.RINGER_MODE_VIBRATE;
        final boolean isRingSilent = isRingStream
                && mState.ringerModeInternal == AudioManager.RINGER_MODE_SILENT;
        final boolean isNotificationMuted = isNotificationStream && ss.muted;
        final boolean isZenPriorityOnly = mState.zenMode == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS;
        final boolean isZenAlarms = mState.zenMode == Global.ZEN_MODE_ALARMS;
        final boolean isZenNone = mState.zenMode == Global.ZEN_MODE_NO_INTERRUPTIONS;
@@ -2200,7 +2205,7 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
        final int iconRes;
        if (isRingVibrate) {
            iconRes = R.drawable.ic_volume_ringer_vibrate;
        } else if (isRingSilent || zenMuted) {
        } else if (isRingSilent || isNotificationMuted || zenMuted) {
            iconRes = row.iconMuteRes;
        } else if (ss.routedToBluetooth) {
            if (isVoiceCallStream) {