2021-12-31 01:34:25 +01:00
|
|
|
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
app:title="@string/settings_title">
|
2022-02-15 16:16:46 -05:00
|
|
|
<PreferenceCategory app:title="@string/settings_notifications_header">
|
2022-01-19 21:05:41 -05:00
|
|
|
<ListPreference
|
2022-01-01 16:56:18 +01:00
|
|
|
app:key="@string/settings_notifications_muted_until_key"
|
2022-01-19 21:05:41 -05:00
|
|
|
app:title="@string/settings_notifications_muted_until_title"
|
|
|
|
|
app:entries="@array/settings_notifications_muted_until_entries"
|
|
|
|
|
app:entryValues="@array/settings_notifications_muted_until_values"
|
|
|
|
|
app:defaultValue="0"/>
|
2022-01-01 16:56:18 +01:00
|
|
|
<ListPreference
|
|
|
|
|
app:key="@string/settings_notifications_min_priority_key"
|
|
|
|
|
app:title="@string/settings_notifications_min_priority_title"
|
|
|
|
|
app:entries="@array/settings_notifications_min_priority_entries"
|
|
|
|
|
app:entryValues="@array/settings_notifications_min_priority_values"
|
|
|
|
|
app:defaultValue="1"/>
|
2022-01-11 19:37:34 -05:00
|
|
|
<ListPreference
|
2022-01-09 22:08:29 -05:00
|
|
|
app:key="@string/settings_notifications_auto_download_key"
|
|
|
|
|
app:title="@string/settings_notifications_auto_download_title"
|
2022-01-11 19:37:34 -05:00
|
|
|
app:entries="@array/settings_notifications_auto_download_entries"
|
|
|
|
|
app:entryValues="@array/settings_notifications_auto_download_values"
|
|
|
|
|
app:defaultValue="1"/>
|
2022-02-09 16:20:24 -05:00
|
|
|
<ListPreference
|
|
|
|
|
app:key="@string/settings_notifications_auto_delete_key"
|
|
|
|
|
app:title="@string/settings_notifications_auto_delete_title"
|
|
|
|
|
app:entries="@array/settings_notifications_auto_delete_entries"
|
|
|
|
|
app:entryValues="@array/settings_notifications_auto_delete_values"
|
|
|
|
|
app:defaultValue="2592000"/>
|
2022-01-01 13:42:00 +01:00
|
|
|
</PreferenceCategory>
|
2022-02-15 16:16:46 -05:00
|
|
|
<PreferenceCategory app:title="@string/settings_general_header">
|
|
|
|
|
<EditTextPreference
|
2022-02-16 13:46:35 -05:00
|
|
|
app:key="@string/settings_general_default_base_url_key"
|
|
|
|
|
app:title="@string/settings_general_default_base_url_title"
|
2022-02-15 16:16:46 -05:00
|
|
|
app:dialogLayout="@layout/preference_dialog_edittext_edited"
|
2022-02-16 13:46:35 -05:00
|
|
|
app:dialogMessage="@string/settings_general_default_base_url_message"/>
|
2022-02-16 12:38:01 -05:00
|
|
|
<Preference
|
2022-02-16 13:46:35 -05:00
|
|
|
app:key="@string/settings_general_users_key"
|
|
|
|
|
app:title="@string/settings_general_users_title"
|
|
|
|
|
app:summary="@string/settings_general_users_summary"
|
2022-02-16 12:38:01 -05:00
|
|
|
app:fragment="io.heckel.ntfy.ui.SettingsActivity$UserSettingsFragment"/>
|
2022-01-19 21:05:41 -05:00
|
|
|
<ListPreference
|
2022-02-16 13:46:35 -05:00
|
|
|
app:key="@string/settings_general_dark_mode_key"
|
|
|
|
|
app:title="@string/settings_general_dark_mode_title"
|
|
|
|
|
app:entries="@array/settings_general_dark_mode_entries"
|
|
|
|
|
app:entryValues="@array/settings_general_dark_mode_values"
|
2022-01-19 21:05:41 -05:00
|
|
|
app:defaultValue="-1"/>
|
2022-01-28 14:40:09 -05:00
|
|
|
</PreferenceCategory>
|
2022-01-01 16:56:18 +01:00
|
|
|
<PreferenceCategory app:title="@string/settings_advanced_header">
|
2022-01-16 15:21:34 -05:00
|
|
|
<SwitchPreference
|
|
|
|
|
app:key="@string/settings_advanced_broadcast_key"
|
|
|
|
|
app:title="@string/settings_advanced_broadcast_title"
|
|
|
|
|
app:enabled="true"/>
|
2022-01-17 18:05:59 -05:00
|
|
|
<SwitchPreference
|
|
|
|
|
app:key="@string/settings_advanced_record_logs_key"
|
|
|
|
|
app:title="@string/settings_advanced_record_logs_title"
|
|
|
|
|
app:enabled="true"/>
|
2022-01-18 22:07:49 -05:00
|
|
|
<ListPreference
|
|
|
|
|
app:key="@string/settings_advanced_export_logs_key"
|
|
|
|
|
app:title="@string/settings_advanced_export_logs_title"
|
|
|
|
|
app:summary="@string/settings_advanced_export_logs_summary"
|
|
|
|
|
app:entries="@array/settings_advanced_export_logs_entries"
|
|
|
|
|
app:entryValues="@array/settings_advanced_export_logs_values"
|
|
|
|
|
app:defaultValue="copy"/>
|
2022-01-17 18:05:59 -05:00
|
|
|
<Preference
|
2022-01-18 22:07:49 -05:00
|
|
|
app:key="@string/settings_advanced_clear_logs_key"
|
|
|
|
|
app:title="@string/settings_advanced_clear_logs_title"
|
|
|
|
|
app:summary="@string/settings_advanced_clear_logs_summary"/>
|
2022-01-16 15:21:34 -05:00
|
|
|
</PreferenceCategory>
|
|
|
|
|
<PreferenceCategory app:title="@string/settings_experimental_header">
|
2022-01-15 18:40:38 -05:00
|
|
|
<ListPreference
|
|
|
|
|
app:key="@string/settings_advanced_connection_protocol_key"
|
|
|
|
|
app:title="@string/settings_advanced_connection_protocol_title"
|
|
|
|
|
app:entries="@array/settings_advanced_connection_protocol_entries"
|
|
|
|
|
app:entryValues="@array/settings_advanced_connection_protocol_values"
|
|
|
|
|
app:defaultValue="jsonhttp"/>
|
2021-12-31 01:34:25 +01:00
|
|
|
</PreferenceCategory>
|
|
|
|
|
<PreferenceCategory app:title="@string/settings_about_header">
|
|
|
|
|
<Preference
|
2022-01-01 16:56:18 +01:00
|
|
|
app:key="@string/settings_about_version_key"
|
2022-01-01 13:42:00 +01:00
|
|
|
app:title="@string/settings_about_version_title"/>
|
2021-12-31 01:34:25 +01:00
|
|
|
</PreferenceCategory>
|
|
|
|
|
</PreferenceScreen>
|