diff --git a/res/xml/captioning_more_options.xml b/res/xml/captioning_more_options.xml
index b902c48a952..c4fc5297205 100644
--- a/res/xml/captioning_more_options.xml
+++ b/res/xml/captioning_more_options.xml
@@ -22,8 +22,8 @@
+ android:title="@string/captioning_locale"
+ settings:controller="com.android.settings.accessibility.CaptionLocalePreferenceController"/>
niks = CaptionMoreOptionsFragment.SEARCH_INDEX_DATA_PROVIDER
+ .getNonIndexableKeys(mContext);
+ final List keys =
+ XmlTestUtils.getKeysFromPreferenceXml(mContext,
+ R.xml.captioning_more_options);
+
+ assertThat(keys).containsAtLeastElementsIn(niks);
+ }
+}