• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Settings


Commit MetaInfo

Revisãoa771c0e925565959173e67fa8478a8c45c0d7d8c (tree)
Hora2016-10-08 21:49:39
AutorSteve Kondik <steve@cyng...>
CommiterGerrit Code Review

Mensagem de Log

settings: Correctly index SwitchPreferences

Change-Id: I5a2b006823954055b0c3892e8b20ce9df6ca8803

Mudança Sumário

Diff

--- a/src/com/android/settings/search/Index.java
+++ b/src/com/android/settings/search/Index.java
@@ -161,6 +161,7 @@ public class Index {
161161 private static final String NODE_NAME_PREFERENCE_SCREEN = "PreferenceScreen";
162162 private static final String NODE_NAME_CHECK_BOX_PREFERENCE = "CheckBoxPreference";
163163 private static final String NODE_NAME_LIST_PREFERENCE = "ListPreference";
164+ private static final String NODE_NAME_SWITCH_PREFERENCE = "SwitchPreference";
164165
165166 private static final List<String> EMPTY_LIST = Collections.<String>emptyList();
166167
@@ -900,7 +901,8 @@ public class Index {
900901 title = getDataTitle(context, attrs);
901902 keywords = getDataKeywords(context, attrs);
902903
903- if (!nodeName.equals(NODE_NAME_CHECK_BOX_PREFERENCE)) {
904+ if (!nodeName.endsWith(NODE_NAME_CHECK_BOX_PREFERENCE) &&
905+ !nodeName.endsWith(NODE_NAME_SWITCH_PREFERENCE)) {
904906 summary = getDataSummary(context, attrs);
905907
906908 String entries = null;