c0515de6b7
Add search and watch history * Make MainActicity a single task * Remove some casting * SearchFragment: start searching when created with query * Handle settings change in onResume * History: Log pop up and background playback * History: Add swipe to remove functionallity * Enable history by default * Use stream item * Store more information about the stream * Integrate history database into AppDatabase * Remove redundant casts * Re-enable date converters * History: Use Rx Java and run DB in background * Also make HistoryDAO extend BasicDAO * History: RX-ify swipe to remove * Sort history entries by creation date * History: Set toolbar title * Don't repeat history entries * Introduced setters so we can update entries in the database * If the latest entry has the same (main) values, just update it
210 lines
8.5 KiB
XML
210 lines
8.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<PreferenceScreen
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:key="general_preferences"
|
|
android:title="@string/settings">
|
|
|
|
<PreferenceCategory
|
|
android:key="@string/settings_category_video_audio"
|
|
android:textAllCaps="true"
|
|
android:title="@string/settings_category_video_audio_title">
|
|
|
|
<CheckBoxPreference
|
|
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"/>
|
|
|
|
<CheckBoxPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/use_external_audio_player_key"
|
|
android:title="@string/use_external_audio_player_title"/>
|
|
|
|
<ListPreference
|
|
android:defaultValue="@string/default_resolution_value"
|
|
android:entries="@array/resolution_list"
|
|
android:entryValues="@array/resolution_list"
|
|
android:key="@string/default_resolution_key"
|
|
android:summary="%s"
|
|
android:title="@string/default_resolution_title"/>
|
|
|
|
<CheckBoxPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/show_higher_resolutions_key"
|
|
android:summary="@string/show_higher_resolutions_summary"
|
|
android:title="@string/show_higher_resolutions_title"/>
|
|
|
|
<ListPreference
|
|
android:defaultValue="@string/preferred_video_format_default"
|
|
android:entries="@array/video_format_list"
|
|
android:entryValues="@array/video_format_list"
|
|
android:key="@string/preferred_video_format_key"
|
|
android:summary="%s"
|
|
android:title="@string/preferred_video_format_title"
|
|
tools:summary="MPEG-4"/>
|
|
|
|
<ListPreference
|
|
android:defaultValue="@string/default_audio_format_value"
|
|
android:entries="@array/audio_format_description_list"
|
|
android:entryValues="@array/audio_format_list"
|
|
android:key="@string/default_audio_format_key"
|
|
android:summary="%s"
|
|
android:title="@string/default_audio_format_title"/>
|
|
|
|
<CheckBoxPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/use_old_player_key"
|
|
android:summary="@string/use_old_player_summary"
|
|
android:title="@string/use_old_player_title"/>
|
|
|
|
<CheckBoxPreference
|
|
android:defaultValue="true"
|
|
android:key="@string/player_gesture_controls_key"
|
|
android:summary="@string/player_gesture_controls_summary"
|
|
android:title="@string/player_gesture_controls_title"/>
|
|
|
|
<CheckBoxPreference
|
|
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"/>
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:key="@string/settings_category_popup"
|
|
android:textAllCaps="true"
|
|
android:title="@string/settings_category_popup_title">
|
|
|
|
<ListPreference
|
|
android:defaultValue="@string/default_popup_resolution_value"
|
|
android:entries="@array/resolution_list"
|
|
android:entryValues="@array/resolution_list"
|
|
android:key="@string/default_popup_resolution_key"
|
|
android:summary="%s"
|
|
android:title="@string/default_popup_resolution_title"/>
|
|
|
|
<CheckBoxPreference
|
|
android:defaultValue="true"
|
|
android:key="@string/popup_remember_size_pos_key"
|
|
android:summary="@string/popup_remember_size_pos_summary"
|
|
android:title="@string/popup_remember_size_pos_title"/>
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:key="@string/settings_category_appearance"
|
|
android:textAllCaps="true"
|
|
android:title="@string/settings_category_appearance_title">
|
|
.
|
|
<ListPreference
|
|
android:defaultValue="@string/default_theme_value"
|
|
android:entries="@array/theme_description_list"
|
|
android:entryValues="@array/theme_list"
|
|
android:key="@string/theme_key"
|
|
android:summary="%s"
|
|
android:title="@string/theme_title"/>
|
|
|
|
<CheckBoxPreference
|
|
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"/>
|
|
|
|
<CheckBoxPreference
|
|
android:defaultValue="true"
|
|
android:key="@string/show_next_video_key"
|
|
android:title="@string/show_next_and_similar_title"/>
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:key="@string/settings_content_options"
|
|
android:textAllCaps="true"
|
|
android:title="@string/content">
|
|
|
|
<ListPreference
|
|
android:defaultValue="@string/default_language_value"
|
|
android:entries="@array/language_names"
|
|
android:entryValues="@array/language_codes"
|
|
android:key="@string/search_language_key"
|
|
android:summary="%s"
|
|
android:title="@string/search_language_title"/>
|
|
|
|
<CheckBoxPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/show_age_restricted_content"
|
|
android:title="@string/show_age_restricted_content_title"/>
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
|
<PreferenceCategory
|
|
android:key="@string/settings_category_downloads"
|
|
android:title="@string/settings_category_downloads_title">
|
|
|
|
<Preference
|
|
android:dialogTitle="@string/download_path_dialog_title"
|
|
android:key="@string/download_path_key"
|
|
android:summary="@string/download_path_summary"
|
|
android:title="@string/download_path_title"/>
|
|
|
|
<Preference
|
|
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"/>
|
|
|
|
<ListPreference
|
|
android:key="@string/settings_file_charset_key"
|
|
android:summary="%s"
|
|
android:defaultValue="@string/default_file_charset_value"
|
|
android:title="@string/settings_file_charset_title"
|
|
android:entryValues="@array/settings_filename_charset"
|
|
android:entries="@array/settings_filename_charset_name" />
|
|
|
|
<EditTextPreference
|
|
android:key="@string/settings_file_replacement_character_key"
|
|
android:summary="@string/settings_file_replacement_character_summary"
|
|
android:defaultValue="@string/settings_file_replacement_character_default_value"
|
|
android:title="@string/settings_file_replacement_character_title" />
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:key="@string/settings_category_other"
|
|
android:textAllCaps="true"
|
|
android:title="@string/settings_category_other_title">
|
|
|
|
<CheckBoxPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/autoplay_through_intent_key"
|
|
android:summary="@string/autoplay_by_calling_app_summary"
|
|
android:title="@string/autoplay_by_calling_app_title"/>
|
|
|
|
<CheckBoxPreference
|
|
android:defaultValue="true"
|
|
android:key="@string/show_search_suggestions_key"
|
|
android:summary="@string/show_search_suggestions_summary"
|
|
android:title="@string/show_search_suggestions_title"/>
|
|
|
|
<CheckBoxPreference
|
|
android:defaultValue="true"
|
|
android:key="@string/enable_search_history_key"
|
|
android:title="@string/enable_search_history_title"
|
|
android:summary="@string/enable_search_history_summary"/>
|
|
|
|
<CheckBoxPreference
|
|
android:defaultValue="true"
|
|
android:key="@string/enable_watch_history_key"
|
|
android:title="@string/enable_watch_history_title"
|
|
android:summary="@string/enable_watch_history_summary"/>
|
|
<!--
|
|
<CheckBoxPreference
|
|
android:key="@string/use_tor_key"
|
|
android:title="@string/use_tor_title"
|
|
android:summary="@string/use_tor_summary"
|
|
android:defaultValue="false"/>
|
|
-->
|
|
</PreferenceCategory>
|
|
</PreferenceScreen>
|