This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hardware_oplus-CherishOS/KeyHandler/res/xml/button_panel.xml
Timi Rautamäki acbbb33e8f KeyHandler: Add more modes
* Add DND modes
 * alarms only
 * important interruptions
 * total silence

* Add option to mute media when going to silent mode

Change-Id: Ia59e06f0a0dd3047b3771bb3ac8d5e338d0a75c3
2022-04-11 17:55:13 +02:00

45 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="@string/alert_slider_category_title">
<SwitchPreference
android:key="config_mute_media"
android:title="@string/alert_slider_mute_media_title"
android:summary="@string/alert_slider_mute_media_summary"
android:defaultValue="0" />
<ListPreference
android:key="config_top_position"
android:dialogTitle="@string/alert_slider_selection_dialog_title"
android:title="@string/alert_slider_top_position"
android:summary="%s"
android:entries="@array/alert_slider_action_entries"
android:entryValues="@array/alert_slider_action_entry_values"
android:defaultValue="0" />
<ListPreference
android:key="config_middle_position"
android:dialogTitle="@string/alert_slider_selection_dialog_title"
android:title="@string/alert_slider_middle_position"
android:summary="%s"
android:entries="@array/alert_slider_action_entries"
android:entryValues="@array/alert_slider_action_entry_values"
android:defaultValue="1" />
<ListPreference
android:key="config_bottom_position"
android:dialogTitle="@string/alert_slider_selection_dialog_title"
android:title="@string/alert_slider_bottom_position"
android:summary="%s"
android:entries="@array/alert_slider_action_entries"
android:entryValues="@array/alert_slider_action_entry_values"
android:defaultValue="2" />
</PreferenceCategory>
</PreferenceScreen>