Format all XML resources

This commit is contained in:
wb9688 2020-10-09 20:24:02 +02:00
parent ae33c6cf18
commit aced2b124c
346 changed files with 3828 additions and 3454 deletions

View file

@ -1,122 +1,121 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:title="@string/content">
<ListPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/default_localization_key"
android:entries="@array/app_language_name"
android:entryValues="@array/app_language_code"
android:key="@string/app_language_key"
android:summary="%s"
android:title="@string/app_language_title"/>
android:title="@string/app_language_title"
app:iconSpaceReserved="false" />
<ListPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/default_localization_key"
android:entries="@array/language_names"
android:entryValues="@array/language_codes"
android:key="@string/content_language_key"
android:summary="%s"
android:title="@string/content_language_title"/>
android:title="@string/content_language_title"
app:iconSpaceReserved="false" />
<ListPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/default_localization_key"
android:entries="@array/country_names"
android:entryValues="@array/country_codes"
android:key="@string/content_country_key"
android:summary="%s"
android:title="@string/default_content_country_title"/>
android:title="@string/default_content_country_title"
app:iconSpaceReserved="false" />
<PreferenceScreen
app:iconSpaceReserved="false"
android:fragment="org.schabi.newpipe.settings.tabs.ChooseTabsFragment"
android:summary="@string/main_page_content_summary"
android:key="@string/main_page_content_key"
android:title="@string/main_page_content"/>
android:summary="@string/main_page_content_summary"
android:title="@string/main_page_content"
app:iconSpaceReserved="false" />
<PreferenceScreen
app:iconSpaceReserved="false"
android:fragment="org.schabi.newpipe.settings.PeertubeInstanceListFragment"
android:key="@string/peertube_instance_setup_key"
android:summary="@string/peertube_instance_url_summary"
android:title="@string/peertube_instance_url_title"
android:summary="@string/peertube_instance_url_summary"/>
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/show_age_restricted_content"
android:summary="@string/show_age_restricted_content_summary"
android:title="@string/show_age_restricted_content_title"
android:summary="@string/show_age_restricted_content_summary"/>
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/youtube_restricted_mode_enabled"
android:summary="@string/youtube_restricted_mode_enabled_summary"
android:title="@string/youtube_restricted_mode_enabled_title"
android:summary="@string/youtube_restricted_mode_enabled_summary"/>
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="true"
android:key="@string/show_search_suggestions_key"
android:summary="@string/show_search_suggestions_summary"
android:title="@string/show_search_suggestions_title"/>
android:title="@string/show_search_suggestions_title"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="true"
android:key="@string/download_thumbnail_key"
android:summary="@string/download_thumbnail_summary"
android:title="@string/download_thumbnail_title"
android:summary="@string/download_thumbnail_summary"/>
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="true"
android:key="@string/show_next_video_key"
android:title="@string/show_next_and_similar_title"/>
android:title="@string/show_next_and_similar_title"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="true"
android:key="@string/show_comments_key"
android:summary="@string/show_comments_summary"
android:title="@string/show_comments_title"
android:summary="@string/show_comments_summary"/>
app:iconSpaceReserved="false" />
<Preference
app:iconSpaceReserved="false"
android:summary="@string/import_data_summary"
android:key="@string/import_data"
android:title="@string/import_data_title"/>
android:summary="@string/import_data_summary"
android:title="@string/import_data_title"
app:iconSpaceReserved="false" />
<Preference
app:iconSpaceReserved="false"
android:title="@string/export_data_title"
android:key="@string/export_data"
android:summary="@string/export_data_summary"/>
android:summary="@string/export_data_summary"
android:title="@string/export_data_title"
app:iconSpaceReserved="false" />
<PreferenceCategory
android:layout="@layout/settings_category_header_layout"
android:title="@string/settings_category_feed_title">
<org.schabi.newpipe.settings.custom.DurationListPreference
app:iconSpaceReserved="false"
android:key="@string/feed_update_threshold_key"
android:defaultValue="@string/feed_update_threshold_default_value"
android:entries="@array/feed_update_threshold_options"
android:entryValues="@array/feed_update_threshold_values"
android:key="@string/feed_update_threshold_key"
android:summary="@string/feed_update_threshold_summary"
android:title="@string/feed_update_threshold_title"
android:summary="@string/feed_update_threshold_summary"/>
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/feed_use_dedicated_fetch_method_key"
android:summary="@string/feed_use_dedicated_fetch_method_summary"
android:title="@string/feed_use_dedicated_fetch_method_title"
android:summary="@string/feed_use_dedicated_fetch_method_summary"/>
app:iconSpaceReserved="false" />
</PreferenceCategory>
</PreferenceScreen>

View file

@ -1,33 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:key="general_preferences"
android:title="@string/settings_category_debug_title">
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/allow_heap_dumping_key"
android:summary="@string/enable_leak_canary_summary"
android:title="@string/leakcanary"
android:summary="@string/enable_leak_canary_summary"/>
app:iconSpaceReserved="false" />
<Preference
app:iconSpaceReserved="false"
android:key="@string/show_memory_leaks_key"
android:title="@string/show_memory_leaks"/>
android:title="@string/show_memory_leaks"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/allow_disposed_exceptions_key"
android:summary="@string/enable_disposed_exceptions_summary"
android:title="@string/enable_disposed_exceptions_title"
android:summary="@string/enable_disposed_exceptions_summary"/>
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/show_original_time_ago_key"
android:summary="@string/show_original_time_ago_summary"
android:title="@string/show_original_time_ago_title"
android:summary="@string/show_original_time_ago_summary"/>
app:iconSpaceReserved="false" />
</PreferenceScreen>

View file

@ -1,75 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:title="@string/settings_category_downloads_title">
<CheckBoxPreference
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/downloads_storage_ask"
android:summary="@string/downloads_storage_ask_summary_kitkat"
android:title="@string/downloads_storage_ask_title" />
android:title="@string/downloads_storage_ask_title"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/storage_use_saf"
android:summary="@string/downloads_storage_use_saf_summary"
android:title="@string/downloads_storage_use_saf_title" />
android:title="@string/downloads_storage_use_saf_title"
app:iconSpaceReserved="false" />
<Preference
app:iconSpaceReserved="false"
android:dialogTitle="@string/download_path_dialog_title"
android:key="@string/download_path_video_key"
android:summary="@string/download_path_summary"
android:title="@string/download_path_title"/>
android:title="@string/download_path_title"
app:iconSpaceReserved="false" />
<Preference
app:iconSpaceReserved="false"
android:dialogTitle="@string/download_path_audio_dialog_title"
android:key="@string/download_path_audio_key"
android:summary="@string/download_path_audio_summary"
android:title="@string/download_path_audio_title"/>
android:title="@string/download_path_audio_title"
app:iconSpaceReserved="false" />
<ListPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/default_file_charset_value"
android:entries="@array/settings_filename_charset_name"
android:entryValues="@array/settings_filename_charset"
android:key="@string/settings_file_charset_key"
android:summary="%s"
android:title="@string/settings_file_charset_title"/>
android:title="@string/settings_file_charset_title"
app:iconSpaceReserved="false" />
<EditTextPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/settings_file_replacement_character_default_value"
android:key="@string/settings_file_replacement_character_key"
android:summary="@string/settings_file_replacement_character_summary"
android:title="@string/settings_file_replacement_character_title"/>
android:title="@string/settings_file_replacement_character_title"
app:iconSpaceReserved="false" />
<ListPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/downloads_maximum_retry_default"
android:entries="@array/downloads_maximum_retry_list"
android:entryValues="@array/downloads_maximum_retry_list"
android:key="@string/downloads_maximum_retry"
android:summary="@string/max_retry_desc"
android:title="@string/max_retry_msg" />
android:title="@string/max_retry_msg"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/downloads_cross_network"
android:summary="@string/pause_downloads_on_mobile_desc"
android:title="@string/pause_downloads_on_mobile" />
android:title="@string/pause_downloads_on_mobile"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="true"
android:key="@string/downloads_queue_limit"
android:summary="@string/enable_queue_limit_desc"
android:title="@string/enable_queue_limit" />
android:title="@string/enable_queue_limit"
app:iconSpaceReserved="false" />
</PreferenceScreen>

View file

@ -64,4 +64,4 @@
</PreferenceCategory>
</PreferenceScreen>
</PreferenceScreen>

View file

@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<paths>
<external-path name="external_files" path="."/>
<root-path name="external_files" path="/storage/" />
</paths>
<external-path
name="external_files"
path="." />
<root-path
name="external_files"
path="/storage/" />
</paths>

View file

@ -1,15 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:key="general_preferences"
android:title="@string/settings_category_updates_title">
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="true"
android:key="@string/update_app_key"
android:summary="@string/updates_setting_description"
android:title="@string/updates_setting_title"
android:summary="@string/updates_setting_description"/>
app:iconSpaceReserved="false" />
</PreferenceScreen>

View file

@ -1,85 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:title="@string/settings_category_video_audio_title">
<ListPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/default_resolution_value"
android:entries="@array/resolution_list_description"
android:entryValues="@array/resolution_list_values"
android:key="@string/default_resolution_key"
android:summary="%s"
android:title="@string/default_resolution_title"/>
android:title="@string/default_resolution_title"
app:iconSpaceReserved="false" />
<ListPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/default_popup_resolution_value"
android:entries="@array/resolution_list_description"
android:entryValues="@array/resolution_list_values"
android:key="@string/default_popup_resolution_key"
android:summary="%s"
android:title="@string/default_popup_resolution_title"/>
android:title="@string/default_popup_resolution_title"
app:iconSpaceReserved="false" />
<ListPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/limit_mobile_data_usage_value"
android:entries="@array/limit_data_usage_description_list"
android:entryValues="@array/limit_data_usage_values_list"
android:key="@string/limit_mobile_data_usage_key"
android:summary="%s"
android:title="@string/limit_mobile_data_usage_title" />
android:title="@string/limit_mobile_data_usage_title"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/show_higher_resolutions_key"
android:summary="@string/show_higher_resolutions_summary"
android:title="@string/show_higher_resolutions_title"/>
android:title="@string/show_higher_resolutions_title"
app:iconSpaceReserved="false" />
<ListPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/default_video_format_value"
android:entries="@array/video_format_description_list"
android:entryValues="@array/video_format_values_list"
android:key="@string/default_video_format_key"
android:summary="%s"
android:title="@string/default_video_format_title"/>
android:title="@string/default_video_format_title"
app:iconSpaceReserved="false" />
<ListPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/default_audio_format_value"
android:entries="@array/audio_format_description_list"
android:entryValues="@array/audio_format_values_list"
android:key="@string/default_audio_format_key"
android:summary="%s"
android:title="@string/default_audio_format_title" />
android:title="@string/default_audio_format_title"
app:iconSpaceReserved="false" />
<PreferenceCategory
app:iconSpaceReserved="false"
android:layout="@layout/settings_category_header_layout"
android:title="@string/settings_category_player_title">
android:title="@string/settings_category_player_title"
app:iconSpaceReserved="false">
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/use_external_video_player_key"
android:summary="@string/use_external_video_player_summary"
android:title="@string/use_external_video_player_title"/>
android:title="@string/use_external_video_player_title"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/use_external_audio_player_key"
android:title="@string/use_external_audio_player_title"/>
android:title="@string/use_external_audio_player_title"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/show_play_with_kodi_key"
android:summary="@string/show_play_with_kodi_summary"
android:title="@string/show_play_with_kodi_title"/>
android:title="@string/show_play_with_kodi_title"
app:iconSpaceReserved="false" />
</PreferenceCategory>
@ -88,82 +87,82 @@
android:title="@string/settings_category_player_behavior_title">
<ListPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/preferred_open_action_default"
android:entries="@array/preferred_open_action_description_list"
android:entryValues="@array/preferred_open_action_values_list"
android:key="@string/preferred_open_action_key"
android:summary="@string/preferred_open_action_settings_summary"
android:title="@string/preferred_open_action_settings_title"/>
android:title="@string/preferred_open_action_settings_title"
app:iconSpaceReserved="false" />
<ListPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/minimize_on_exit_value"
android:entries="@array/minimize_on_exit_action_description"
android:entryValues="@array/minimize_on_exit_action_key"
android:key="@string/minimize_on_exit_key"
android:summary="@string/minimize_on_exit_summary"
android:title="@string/minimize_on_exit_title"/>
android:title="@string/minimize_on_exit_title"
app:iconSpaceReserved="false" />
<ListPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/autoplay_value"
android:entries="@array/autoplay_type_description"
android:entryValues="@array/autoplay_type_key"
android:key="@string/autoplay_key"
android:summary="@string/autoplay_summary"
android:title="@string/autoplay_title"/>
android:defaultValue="@string/autoplay_value"
android:entries="@array/autoplay_type_description"
android:entryValues="@array/autoplay_type_key"
android:key="@string/autoplay_key"
android:summary="@string/autoplay_summary"
android:title="@string/autoplay_title"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/auto_queue_key"
android:summary="@string/auto_queue_summary"
android:title="@string/auto_queue_title"/>
android:title="@string/auto_queue_title"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/resume_on_audio_focus_gain_key"
android:summary="@string/resume_on_audio_focus_gain_summary"
android:title="@string/resume_on_audio_focus_gain_title"/>
android:title="@string/resume_on_audio_focus_gain_title"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="true"
android:key="@string/volume_gesture_control_key"
android:summary="@string/volume_gesture_control_summary"
android:title="@string/volume_gesture_control_title"/>
android:title="@string/volume_gesture_control_title"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="true"
android:key="@string/brightness_gesture_control_key"
android:summary="@string/brightness_gesture_control_summary"
android:title="@string/brightness_gesture_control_title"/>
android:title="@string/brightness_gesture_control_title"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/use_inexact_seek_key"
android:summary="@string/use_inexact_seek_summary"
android:title="@string/use_inexact_seek_title"/>
android:title="@string/use_inexact_seek_title"
app:iconSpaceReserved="false" />
<ListPreference
app:iconSpaceReserved="false"
android:defaultValue="@string/seek_duration_default_value"
android:entries="@array/seek_duration_description"
android:entryValues="@array/seek_duration_value"
android:key="@string/seek_duration_key"
android:summary="%s"
android:title="@string/seek_duration_title"/>
android:defaultValue="@string/seek_duration_default_value"
android:entries="@array/seek_duration_description"
android:entryValues="@array/seek_duration_value"
android:key="@string/seek_duration_key"
android:summary="%s"
android:title="@string/seek_duration_title"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
app:iconSpaceReserved="false"
android:defaultValue="false"
android:key="@string/clear_queue_confirmation_key"
android:summary="@string/clear_queue_confirmation_summary"
android:title="@string/clear_queue_confirmation_title"/>
android:title="@string/clear_queue_confirmation_title"
app:iconSpaceReserved="false" />
</PreferenceCategory>
</PreferenceScreen>