1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-03 23:42:57 +01:00
Gadgetbridge/app/src/main/res/xml/notifications_preferences.xml
2022-10-29 15:20:03 +02:00

134 lines
6.2 KiB
XML

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory xmlns:app="http://schemas.android.com/apk/res-auto"
android:key="pref_key_notifications"
android:title="@string/pref_header_notifications">
<Preference
android:key="notifications_settings"
android:title="@string/pref_title_notifications_generic_settings" />
<Preference
android:key="notifications_generic"
android:title="@string/pref_title_notifications_generic" />
<CheckBoxPreference
android:defaultValue="false"
android:key="notifications_generic_whenscreenon"
android:layout="@layout/preference_checkbox"
android:title="@string/pref_title_whenscreenon" />
<CheckBoxPreference
android:defaultValue="true"
android:key="notifications_ignore_low_priority"
android:layout="@layout/preference_checkbox"
android:title="@string/pref_title_notifications_ignore_low_priority"
android:summary="@string/pref_summary_notifications_ignore_low_priority" />
<CheckBoxPreference
android:defaultValue="true"
android:key="notification_prefer_long_text"
android:layout="@layout/preference_checkbox"
android:title="@string/pref_title_notification_prefer_long_text"
android:summary="@string/pref_summary_notification_prefer_long_text" />
<CheckBoxPreference
android:defaultValue="false"
android:key="minimize_priority"
android:layout="@layout/preference_checkbox"
android:summaryOff="@string/pref_summary_minimize_priority_off"
android:summaryOn="@string/pref_summary_minimize_priority_on"
android:title="@string/pref_title_minimize_priority" />
<Preference
android:id="@+id/preference"
android:key="ping_tone"
android:title="@string/pref_title_ping_tone"
app:summary="%s" />
<ListPreference
android:defaultValue="always"
android:entries="@array/notification_mode_toggle"
android:entryValues="@array/notification_mode_values_toggle"
android:key="notification_mode_calls"
android:summary="%s"
android:title="@string/pref_title_notifications_call" />
<CheckBoxPreference
android:defaultValue="false"
android:key="notification_support_voip_calls"
android:layout="@layout/preference_checkbox"
android:title="@string/pref_title_support_voip_calls" />
<EditTextPreference
android:defaultValue="0"
android:inputType="number"
android:digits="0123456789"
android:key="notification_delay_calls"
android:maxLength="2"
android:title="@string/pref_title_notification_delay_calls"
android:summary="@string/pref_summary_notification_delay_calls" />
<ListPreference
android:defaultValue="when_screen_off"
android:entries="@array/notification_mode"
android:entryValues="@array/notification_mode_values"
android:key="notification_mode_sms"
android:summary="%s"
android:title="@string/pref_title_notifications_sms" />
<ListPreference
android:defaultValue="when_screen_off"
android:entries="@array/notification_mode"
android:entryValues="@array/notification_mode_values"
android:key="notification_mode_pebblemsg"
android:summary="@string/pref_summary_notifications_pebblemsg"
android:title="@string/pref_title_notifications_pebblemsg" />
<ListPreference
android:defaultValue="0"
android:entries="@array/notifications_timeout"
android:entryValues="@array/notifications_timeout_values"
android:key="notifications_timeout"
android:summary="%s"
android:title="@string/pref_title_notifications_timeout" />
<CheckBoxPreference
android:defaultValue="false"
android:key="notification_filter"
android:layout="@layout/preference_checkbox"
android:summary="@string/pref_summary_notification_filter"
android:title="@string/pref_title_notification_filter" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_header_notification_application_settings">
<ListPreference
android:defaultValue="true"
android:entries="@array/notification_list_is_blacklist_names"
android:entryValues="@array/notification_list_is_blacklist_values"
android:key="notification_list_is_blacklist"
android:summary="%s"
android:title="@string/pref_title_notification_use_as" />
<CheckBoxPreference
android:defaultValue="false"
android:key="notification_media_ignores_application_list"
android:layout="@layout/preference_checkbox"
android:summary="@string/pref_summary_notification_media_ignores_application_list"
android:title="@string/pref_title_notification_media_ignores_application_list" />
<Preference
android:key="pref_key_blacklist"
android:title="@string/pref_applications_settings" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_header_privacy">
<ListPreference
android:defaultValue="@string/p_call_privacy_mode_off"
android:entries="@array/pref_call_privacy_mode"
android:entryValues="@array/pref_call_privacy_mode_values"
android:key="pref_call_privacy_mode"
android:summary="%s"
android:title="@string/pref_title_call_privacy_mode" />
<ListPreference
android:defaultValue="off"
android:entries="@array/pref_message_privacy_mode"
android:entryValues="@array/pref_message_privacy_mode_values"
android:key="pref_message_privacy_mode"
android:summary="%s"
android:title="@string/pref_title_message_privacy_mode" />
</PreferenceCategory>
</PreferenceScreen>