<PreferenceScreen
	xmlns:android="http://schemas.android.com/apk/res/android"
	android:title="@string/preferences"
	android:key="preferences">
	<PreferenceCategory android:title="@string/profile_category">
		<Preference
			android:key="profile"
			android:title="@string/profile"
			android:summary="@string/profile_default"/>
	</PreferenceCategory>
	<PreferenceCategory android:title="@string/scan_category">
		<MultiSelectListPreference
			android:key="formats"
			android:title="@string/barcode_formats"
			android:entries="@array/barcode_formats_names"
			android:entryValues="@array/barcode_formats_values"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="true"
			android:key="show_crop_handle"
			android:title="@string/show_crop_handle"
			android:summary="@string/show_crop_handle_summary"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="false"
			android:key="show_crosshairs"
			android:title="@string/show_crosshairs"
			android:summary="@string/show_crosshairs_summary"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="true"
			android:key="zoom_by_swiping"
			android:title="@string/zoom_by_swiping"
			android:summary="@string/zoom_by_swiping_summary"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="false"
			android:key="auto_rotate"
			android:title="@string/auto_rotate"
			android:summary="@string/auto_rotate_summary"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="false"
			android:key="try_harder"
			android:title="@string/try_harder"
			android:summary="@string/try_harder_summary"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="false"
			android:key="bulk_mode"
			android:title="@string/bulk_mode"
			android:summary="@string/bulk_mode_summary"/>
		<ListPreference
			android:key="default_camera"
			android:title="@string/default_camera"
			android:defaultValue="back"/>
		<ListPreference
			android:key="bulk_mode_delay"
			android:title="@string/bulk_mode_delay"
			android:entries="@array/bulk_mode_delays_names"
			android:entryValues="@array/bulk_mode_delays_values"
			android:defaultValue="500"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="true"
			android:key="show_toast_in_bulk_mode"
			android:title="@string/show_toast_in_bulk_mode"
			android:summary="@string/show_toast_in_bulk_mode_summary"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="true"
			android:key="vibrate"
			android:title="@string/vibrate"
			android:summary="@string/vibrate_summary"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="false"
			android:key="beep"
			android:title="@string/beep"
			android:summary="@string/beep_summary"/>
		<ListPreference
			android:key="beep_tone_name"
			android:title="@string/beep_tone"
			android:entries="@array/beep_tones_names"
			android:entryValues="@array/beep_tones_values"
			android:defaultValue="tone_prop_beep"/>
		<ListPreference
			android:key="beep_stream_name"
			android:title="@string/beep_stream"
			android:entries="@array/beep_streams_names"
			android:entryValues="@array/beep_streams_values"
			android:defaultValue="stream_music"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="true"
			android:key="use_history"
			android:title="@string/use_history"
			android:summary="@string/use_history_summary"/>
		<ListPreference
			android:key="ignore_duplicates_name"
			android:title="@string/ignore_duplicates"
			android:entries="@array/ignore_duplicates_names"
			android:entryValues="@array/ignore_duplicates_values"
			android:defaultValue="ignore_consecutive_duplicates"/>
		<Preference
			android:key="ignore_codes"
			android:title="@string/ignore_codes"
			android:summary="@string/ignore_codes_none"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="false"
			android:key="copy_immediately"
			android:title="@string/copy_immediately"
			android:summary="@string/copy_immediately_summary"/>
	</PreferenceCategory>
	<PreferenceCategory android:title="@string/send_category">
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="true"
			android:key="send_scan_active"
			android:title="@string/send_scan_active"
			android:summary="@string/send_scan_active_summary"/>
		<de.markusfisch.android.binaryeye.preference.UrlPreference
			android:key="send_scan_url"
			android:title="@string/send_scan_url"/>
		<ListPreference
			android:key="send_scan_type"
			android:title="@string/send_scan_type"
			android:entries="@array/send_type_names"
			android:entryValues="@array/send_type_values"
			android:defaultValue="0"/>
		<EditTextPreference
			android:key="send_scan_device_id"
			android:title="@string/send_scan_device_id"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="false"
			android:key="send_scan_bluetooth"
			android:title="@string/send_scan_bluetooth"
			android:summary="@string/send_scan_bluetooth_summary"/>
		<ListPreference
			android:key="send_scan_bluetooth_host"
			android:title="@string/send_scan_bluetooth_host"
			android:entries="@array/bluetooth_host_names"
			android:entryValues="@array/bluetooth_host_values"
			android:defaultValue="@string/no_bluetooth_hosts_paired_value"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="false"
			android:key="send_scan_kde_connect"
			android:title="@string/send_scan_kde_connect"
			android:summary="@string/send_scan_kde_connect_summary"/>
	</PreferenceCategory>
	<PreferenceCategory android:title="@string/content_category">
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="false"
			android:key="open_immediately"
			android:title="@string/open_immediately"
			android:summary="@string/open_immediately_summary"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="true"
			android:key="strip_tracking_params"
			android:title="@string/strip_tracking_params"
			android:summary="@string/strip_tracking_params_summary"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="true"
			android:key="show_meta_data"
			android:title="@string/show_meta_data"
			android:summary="@string/show_meta_data_summary"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="true"
			android:key="show_hex_dump"
			android:title="@string/show_hex_dump"
			android:summary="@string/show_hex_dump_summary"/>
		<ListPreference
			android:key="show_checksum"
			android:title="@string/show_checksum"
			android:entries="@array/checksum_names"
			android:entryValues="@array/checksum_values"
			android:defaultValue="@string/no_checksum"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="true"
			android:key="show_recreation"
			android:title="@string/show_recreation"
			android:summary="@string/show_recreation_summary"/>
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="true"
			android:key="close_automatically"
			android:title="@string/close_automatically"
			android:summary="@string/close_automatically_summary"/>
		<ListPreference
			android:key="default_search_url"
			android:title="@string/default_search_engine"
			android:entries="@array/search_engines_names"
			android:entryValues="@array/search_engines_values"
			android:defaultValue=""/>
		<de.markusfisch.android.binaryeye.preference.UrlPreference
			android:key="open_with_url"
			android:title="@string/open_with_url"/>
		<Preference
			android:key="automated_actions"
			android:title="@string/automated_actions"
			android:summary="@string/automated_actions_none"/>
		<Preference
			android:key="clear_network_suggestions"
			android:title="@string/clear_network_suggestions"
			android:summary="@string/clear_network_suggestions_summary"/>
	</PreferenceCategory>
	<PreferenceCategory android:title="@string/generation_category">
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="false"
			android:key="brighten_screen"
			android:title="@string/brighten_screen"
			android:summary="@string/brighten_screen_summary"/>
	</PreferenceCategory>
	<PreferenceCategory android:title="@string/locale_category">
		<ListPreference
			android:key="custom_locale"
			android:title="@string/custom_locale"
			android:entries="@array/locale_names"
			android:entryValues="@array/locale_values"
			android:defaultValue="0"/>
	</PreferenceCategory>
	<PreferenceCategory
		android:key="appearance_category"
		android:title="@string/appearance_category">
		<androidx.preference.SwitchPreferenceCompat
			android:defaultValue="true"
			android:key="dynamic_colors"
			android:title="@string/dynamic_colors"
			android:summary="@string/dynamic_colors_summary"/>
	</PreferenceCategory>
</PreferenceScreen>
