music: new location dialog

This commit is contained in:
Alexander Capehart
2025-07-04 13:41:33 -06:00
parent 497c35d81a
commit b6b5b3b87d
23 changed files with 1170 additions and 412 deletions
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M480,600L280,400L680,400L480,600Z"/>
</vector>
+10
View File
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M280,560L480,360L680,560L280,560Z"/>
</vector>
+11
View File
@@ -0,0 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal"
android:autoMirrored="true">
<path
android:fillColor="@android:color/white"
android:pathData="M256,720L200,664L584,280L240,280L240,200L720,200L720,680L640,680L640,336L256,720Z"/>
</vector>
@@ -1,19 +1,399 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
style="@style/Widget.Auxio.Dialog.NestedScrollView"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:orientation="vertical">
<org.oxycblt.auxio.list.recycler.DialogRecyclerView
android:id="@+id/locations_recycler"
style="@style/Widget.Auxio.RecyclerView.Linear"
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:clipToPadding="false"
android:overScrollMode="never"
app:layout_constraintTop_toBottomOf="@+id/locations_list_header"
tools:listitem="@layout/item_music_location" />
android:layout_height="match_parent">
</FrameLayout>
<TextView
android:id="@+id/locations_mode_header"
style="@style/Widget.Auxio.TextView.Header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="@dimen/spacing_large"
tools:text="Load From"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.button.MaterialButtonToggleGroup
android:id="@+id/folder_mode_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_large"
android:layout_marginTop="@dimen/spacing_tiny"
android:layout_marginEnd="@dimen/spacing_large"
android:gravity="center"
app:checkedButton="@+id/locations_mode_exclude"
app:layout_constraintTop_toBottomOf="@+id/locations_mode_header"
app:selectionRequired="true"
app:singleSelection="true">
<org.oxycblt.auxio.ui.RippleFixMaterialButton
android:id="@+id/locations_mode_exclude"
style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
tools:text="File Picker"
tools:icon="@drawable/ic_check_24" />
<org.oxycblt.auxio.ui.RippleFixMaterialButton
android:id="@+id/locations_mode_include"
style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
tools:text="System" />
</com.google.android.material.button.MaterialButtonToggleGroup>
<TextView
android:id="@+id/locations_mode_desc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_large"
android:layout_marginTop="@dimen/spacing_tiny"
android:layout_marginEnd="@dimen/spacing_large"
android:textAlignment="viewStart"
android:textAppearance="@style/TextAppearance.Auxio.BodySmall"
app:layout_constraintTop_toBottomOf="@+id/folder_mode_group"
tools:text="More reliable, but slower. Requires the vanilla Android file picker." />
<FrameLayout
android:id="@+id/locations_perms_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/spacing_large"
android:paddingTop="@dimen/spacing_medium"
android:paddingEnd="@dimen/spacing_large"
android:paddingBottom="@dimen/spacing_medium"
app:layout_constraintBottom_toTopOf="@+id/locations_include_list_header_divider"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/locations_mode_desc">
<com.google.android.material.card.MaterialCardView
android:id="@+id/locations_perms_card"
style="@style/Widget.Material3.CardView.Filled"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
android:textAlignment="viewStart"
android:textAppearance="@style/TextAppearance.Auxio.BodyLarge"
app:cardBackgroundColor="?attr/colorSecondaryContainer">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/spacing_medium">
<TextView
android:id="@+id/locations_perms_desc"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textAlignment="viewStart"
android:layout_marginEnd="@dimen/spacing_tiny"
android:textAppearance="@style/TextAppearance.Auxio.BodyLarge"
android:textColor="?attr/colorOnSecondaryContainer"
app:layout_constraintBottom_toTopOf="@+id/locations_perms_subtitle"
app:layout_constraintEnd_toStartOf="@+id/locations_perms_open"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Storage Access Recommended" />
<TextView
android:id="@+id/locations_perms_subtitle"
style="@style/Widget.Auxio.TextView.Secondary.Compact"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:maxLines="2"
android:textAlignment="viewStart"
android:textColor="?attr/colorSecondary"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/locations_perms_desc"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/locations_perms_desc"
tools:text="Can fix loading on some devices" />
<ImageView
android:id="@+id/locations_perms_open"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_open_20"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:tint="?attr/colorOnSecondaryContainer" />
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>
</FrameLayout>
<com.google.android.material.divider.MaterialDivider
android:id="@+id/locations_include_list_header_divider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/locations_perms_container" />
<TextView
android:id="@+id/locations_include_list_header"
style="@style/Widget.Auxio.TextView.Header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="@dimen/spacing_large"
android:text="@string/lbl_folders_to_load"
tools:text="Folders to Load"
app:layout_constraintTop_toBottomOf="@+id/locations_include_list_header_divider" />
<org.oxycblt.auxio.ui.RippleFixMaterialButton
android:id="@+id/locations_include_add"
style="@style/Widget.Auxio.Button.Icon.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/spacing_mid_large"
android:contentDescription="Add Folder"
app:icon="@drawable/ic_add_24"
app:layout_constraintEnd_toEndOf="@+id/locations_include_list_header"
app:layout_constraintTop_toBottomOf="@+id/locations_include_list_header_divider" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/locations_include_recycler"
style="@style/Widget.Auxio.RecyclerView.Linear"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_gravity="center"
android:layout_weight="1"
android:clipToPadding="false"
android:overScrollMode="never"
app:layout_constraintTop_toBottomOf="@+id/locations_include_list_header"
tools:itemCount="1"
tools:listitem="@layout/item_music_location" />
<com.google.android.material.divider.MaterialDivider
android:id="@+id/locations_exclude_list_header_divider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/locations_include_recycler" />
<TextView
android:id="@+id/locations_extras_dropdown"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/spacing_large"
android:background="@drawable/ui_item_ripple"
android:paddingEnd="@dimen/spacing_large"
android:paddingVertical="@dimen/spacing_medium"
android:textAppearance="@style/TextAppearance.Auxio.TitleMediumEmphasis"
tools:text="Extra Settings"
app:layout_constraintTop_toBottomOf="@+id/locations_exclude_list_header_divider" />
<ImageView
android:id="@+id/locations_extras_dropdown_icon"
android:layout_width="@dimen/size_touchable_small"
android:layout_height="@dimen/size_touchable_small"
android:layout_marginEnd="@dimen/spacing_mid_large"
android:scaleType="center"
android:src="@drawable/ic_down_24"
app:tint="?attr/colorOnSurfaceVariant"
app:layout_constraintBottom_toBottomOf="@+id/locations_extras_dropdown"
app:layout_constraintEnd_toEndOf="@+id/locations_extras_dropdown"
app:layout_constraintTop_toBottomOf="@+id/locations_exclude_list_header_divider" />
<TextView
android:id="@+id/locations_exclude_mode_header"
style="@style/Widget.Auxio.TextView.Header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="@dimen/spacing_large"
app:layout_constraintTop_toBottomOf="@+id/locations_extras_dropdown"
tools:text="Filter Mode" />
<com.google.android.material.button.MaterialButtonToggleGroup
android:id="@+id/locations_exclude_mode_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_large"
android:layout_marginTop="@dimen/spacing_tiny"
android:layout_marginEnd="@dimen/spacing_large"
android:gravity="center"
app:checkedButton="@+id/locations_exclude_mode_exclude"
app:layout_constraintTop_toBottomOf="@+id/locations_exclude_mode_header"
app:selectionRequired="true"
app:singleSelection="true">
<org.oxycblt.auxio.ui.RippleFixMaterialButton
android:id="@+id/locations_exclude_mode_exclude"
style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
tools:text="Include"
tools:icon="@drawable/ic_check_24" />
<org.oxycblt.auxio.ui.RippleFixMaterialButton
android:id="@+id/locations_exclude_mode_include"
style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
tools:text="Exclude" />
</com.google.android.material.button.MaterialButtonToggleGroup>
<TextView
android:id="@+id/locations_exclude_mode_desc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_large"
android:layout_marginTop="@dimen/spacing_tiny"
android:layout_marginEnd="@dimen/spacing_large"
android:textAlignment="viewStart"
android:textAppearance="@style/TextAppearance.Auxio.BodySmall"
app:layout_constraintTop_toBottomOf="@+id/locations_exclude_mode_group"
tools:text="Audio files outside of the selected folders will be ignored." />
<com.google.android.material.divider.MaterialDivider
android:id="@+id/locations_filter_mode_divider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_medium"
app:layout_constraintTop_toBottomOf="@+id/locations_exclude_mode_desc" />
<TextView
android:id="@+id/locations_filter_list_header"
style="@style/Widget.Auxio.TextView.Header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="@dimen/spacing_large"
android:text="@string/lbl_filtered_folders"
app:layout_constraintTop_toBottomOf="@+id/locations_filter_mode_divider" />
<org.oxycblt.auxio.ui.RippleFixMaterialButton
android:id="@+id/locations_filter_add"
style="@style/Widget.Auxio.Button.Icon.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/spacing_mid_large"
android:contentDescription="@string/desc_add_folder"
app:icon="@drawable/ic_add_24"
app:layout_constraintEnd_toEndOf="@+id/locations_filter_list_header"
app:layout_constraintTop_toBottomOf="@+id/locations_filter_mode_divider" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/locations_filter_recycler"
style="@style/Widget.Auxio.RecyclerView.Linear"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_gravity="center"
android:layout_weight="1"
android:clipToPadding="false"
android:overScrollMode="never"
app:layout_constraintTop_toBottomOf="@+id/locations_filter_list_header"
tools:itemCount="1"
tools:listitem="@layout/item_music_location" />
<com.google.android.material.divider.MaterialDivider
android:id="@+id/locations_exclude_list_divider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/locations_filter_recycler" />
<TextView
android:id="@+id/locations_exclude_list_header"
style="@style/Widget.Auxio.TextView.Header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="@dimen/spacing_large"
android:text="@string/lbl_folders_to_ignore"
app:layout_constraintTop_toBottomOf="@+id/locations_exclude_list_divider" />
<org.oxycblt.auxio.ui.RippleFixMaterialButton
android:id="@+id/locations_exclude_add"
style="@style/Widget.Auxio.Button.Icon.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/spacing_mid_large"
android:contentDescription="@string/desc_add_folder"
app:icon="@drawable/ic_add_24"
app:layout_constraintEnd_toEndOf="@+id/locations_exclude_list_header"
app:layout_constraintTop_toBottomOf="@+id/locations_exclude_list_divider" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/locations_exclude_recycler"
style="@style/Widget.Auxio.RecyclerView.Linear"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_gravity="center"
android:layout_weight="1"
android:clipToPadding="false"
android:overScrollMode="never"
app:layout_constraintTop_toBottomOf="@+id/locations_exclude_list_header"
tools:itemCount="1"
tools:listitem="@layout/item_music_location" />
<com.google.android.material.divider.MaterialDivider
android:id="@+id/config_divider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/locations_exclude_recycler" />
<!-- "Load Hidden Folders" for File Picker mode -->
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/config_switch_file_picker"
style="@style/Widget.Auxio.RecyclerView.Linear"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_gravity="center"
android:layout_marginHorizontal="@dimen/spacing_large"
android:layout_marginVertical="@dimen/spacing_small"
android:layout_weight="1"
android:clipToPadding="false"
android:overScrollMode="never"
android:text="@string/lbl_load_hidden_folders"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/config_divider"
tools:itemCount="1"
tools:listitem="@layout/item_music_location" />
<!-- "Exclude non-music" for System Database mode -->
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/config_switch_system"
style="@style/Widget.Auxio.RecyclerView.Linear"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_gravity="center"
android:layout_marginHorizontal="@dimen/spacing_large"
android:layout_marginVertical="@dimen/spacing_small"
android:layout_weight="1"
android:clipToPadding="false"
android:overScrollMode="never"
android:text="@string/lbl_exclude_non_music"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/config_divider"
tools:itemCount="1"
tools:listitem="@layout/item_music_location" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal"
android:paddingTop="@dimen/spacing_small"
android:minHeight="@dimen/size_touchable_large"
android:paddingBottom="@dimen/spacing_small">
<TextView
android:id="@+id/location_path"
style="@style/Widget.Auxio.TextView.Secondary.Base"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_large"
android:layout_marginEnd="@dimen/spacing_large"
android:layout_weight="1"
android:gravity="center"
android:maxLines="@null"
android:textAlignment="center"
tools:text="No Folders" />
</LinearLayout>
+1 -1
View File
@@ -570,7 +570,7 @@
<dialog
android:id="@+id/music_locations_dialog"
android:name="org.oxycblt.auxio.music.locations.MusicLocationsDialog"
android:name="org.oxycblt.auxio.music.locations.LocationsDialog"
android:label="music_locations_dialog"
tools:layout="@layout/dialog_music_locations" />
</navigation>
+1 -9
View File
@@ -36,9 +36,6 @@
<action
android:id="@+id/music_locations_settings"
app:destination="@id/music_locations_dialog" />
<action
android:id="@+id/excluded_locations_settings"
app:destination="@id/excluded_locations_dialog" />
</fragment>
<fragment
@@ -94,7 +91,7 @@
tools:layout="@layout/dialog_pre_amp" />
<dialog
android:id="@+id/music_locations_dialog"
android:name="org.oxycblt.auxio.music.locations.MusicLocationsDialog"
android:name="org.oxycblt.auxio.music.locations.LocationsDialog"
android:label="music_locations_dialog"
tools:layout="@layout/dialog_music_locations" />
<dialog
@@ -102,11 +99,6 @@
android:name="org.oxycblt.auxio.music.interpret.SeparatorsDialog"
android:label="separators_dialog"
tools:layout="@layout/dialog_separators" />
<dialog
android:id="@+id/excluded_locations_dialog"
android:name="org.oxycblt.auxio.music.locations.ExcludedLocationsDialog"
android:label="excluded_locations_dialog"
tools:layout="@layout/dialog_music_locations" />
<fragment
android:id="@+id/about_fragment"
+1
View File
@@ -24,6 +24,7 @@
<string name="set_key_excluded_locations" translatable="false">auxio_excluded_locations</string>
<string name="set_key_separators" translatable="false">auxio_separators</string>
<string name="set_key_auto_sort_names" translatable="false">auxio_auto_sort_names</string>
<string name="set_key_saf_mode" translatable="false">auxio_saf_mode</string>
<string name="set_key_headset_autoplay" translatable="false">auxio_headset_autoplay</string>
<string name="set_key_replay_gain" translatable="false">auxio_replay_gain</string>
+26 -1
View File
@@ -16,9 +16,33 @@
<string name="lbl_observing">Monitoring music library</string>
<!-- As in to retry loading music -->
<string name="lbl_retry">Retry</string>
<string name="lbl_music_sources">Pick folders</string>
<string name="lbl_music_sources">Music Sources</string>
<!-- As in to show additional information about a music loading error -->
<!-- As in grant permission -->
<string name="lbl_grant">Grant</string>
<!-- Music location dialog strings -->
<string name="lbl_load_from">Load From</string>
<string name="lbl_file_picker">File Picker</string>
<string name="lbl_system_database">System</string>
<string name="desc_file_picker">Load music from the folders that you select. Slower, but more reliable. Requires the vanilla file manager app to be installed.</string>
<string name="desc_system_database">Load music that the Android OS automatically detects. Faster, but less reliable. Manufacturers might break this.</string>
<string name="lbl_grant_storage_anyway">Storage Access Recommended</string>
<string name="desc_grant_storage_anyway">Granting external storage permissions can fix issues on some devices.</string>
<string name="lbl_grant_storage">Storage Access Required</string>
<string name="desc_grant_storage_required">Grant external storage permissions to enable this option.</string>
<string name="lbl_folders_to_load">Folders to Load</string>
<string name="lbl_folders_to_ignore">Folders to Ignore</string>
<string name="lbl_filtered_folders">Filtered Folders</string>
<string name="lbl_filter_mode">Filter Mode</string>
<string name="lbl_include">Include</string>
<string name="lbl_exclude">Exclude</string>
<string name="desc_include_folders">Audio files outside of the selected folders will be ignored.</string>
<string name="desc_exclude_folders">Audio files in the selected folders will be ignored.</string>
<string name="lbl_exclude_non_music">Exclude Non-Music</string>
<string name="lbl_load_hidden_folders">Load Hidden Folders</string>
<string name="lbl_extra_settings">Extra Settings</string>
<string name="desc_add_folder">Add Folder</string>
<string name="lbl_songs">Songs</string>
<string name="lbl_song">Song</string>
@@ -332,6 +356,7 @@
<string name="err_no_app">No app found that can handle this task</string>
<!-- No folders in the "Music Folders" setting -->
<string name="err_bad_location">This folder is not supported</string>
<string name="lbl_no_folders">No Folders</string>
<!-- Description Namespace | Accessibility Strings -->
+7
View File
@@ -78,6 +78,13 @@
<item name="android:letterSpacing">-0.01125</item>
</style>
<style name="TextAppearance.Auxio.TitleMediumEmphasis" parent="TextAppearance.Material3.TitleMedium">
<item name="fontFamily">@font/inter_semibold</item>
<item name="android:fontFamily">@font/inter_semibold</item>
<item name="android:textStyle">bold</item>
<item name="android:letterSpacing">-0.01425</item>
</style>
<style name="TextAppearance.Auxio.TitleSmall" parent="TextAppearance.Material3.TitleSmall">
<item name="fontFamily">@font/inter_semibold</item>
<item name="android:fontFamily">@font/inter_semibold</item>
@@ -33,11 +33,6 @@
app:summary="@string/set_locations_desc"
app:title="@string/set_locations" />
<org.oxycblt.auxio.settings.ui.WrappedDialogPreference
app:key="@string/set_key_excluded_dirs"
app:summary="@string/set_excluded_locations_desc"
app:title="@string/set_excluded_locations" />
<Preference
app:key="@string/set_key_reindex"
app:summary="@string/set_reindex_desc"