Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b833ec94 authored by Steve Kondik's avatar Steve Kondik Committed by Arne Coucheron
Browse files

settings: Correctly index SwitchPreferences

Change-Id: I5a2b006823954055b0c3892e8b20ce9df6ca8803
parent af0d1ba5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -161,6 +161,7 @@ public class Index {
    private static final String NODE_NAME_PREFERENCE_SCREEN = "PreferenceScreen";
    private static final String NODE_NAME_CHECK_BOX_PREFERENCE = "CheckBoxPreference";
    private static final String NODE_NAME_LIST_PREFERENCE = "ListPreference";
    private static final String NODE_NAME_SWITCH_PREFERENCE = "SwitchPreference";

    private static final List<String> EMPTY_LIST = Collections.<String>emptyList();

@@ -900,7 +901,8 @@ public class Index {
                title = getDataTitle(context, attrs);
                keywords = getDataKeywords(context, attrs);

                if (!nodeName.equals(NODE_NAME_CHECK_BOX_PREFERENCE)) {
                if (!nodeName.endsWith(NODE_NAME_CHECK_BOX_PREFERENCE) &&
                        !nodeName.endsWith(NODE_NAME_SWITCH_PREFERENCE)) {
                    summary = getDataSummary(context, attrs);

                    String entries = null;