File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/settings/preferencesearch Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import android .content .Context ;
44import android .text .TextUtils ;
55import android .util .Log ;
6+
67import androidx .annotation .NonNull ;
78import androidx .annotation .Nullable ;
89import androidx .annotation .XmlRes ;
1415import java .util .Arrays ;
1516import java .util .List ;
1617import java .util .Map ;
17- import java .util .Objects ;
1818import java .util .stream .Collectors ;
1919
2020/**
@@ -64,6 +64,8 @@ public List<PreferenceSearchItem> parse(
6464 results .add (result );
6565 }
6666 if (searchConfiguration .getParserContainerElements ().contains (xpp .getName ())) {
67+ // This code adds breadcrumbs for certain containers (e.g. PreferenceScreen)
68+ // Example: Video and Audio > Player
6769 breadcrumbs .add (result .getTitle () == null ? "" : result .getTitle ());
6870 }
6971 } else if (xpp .getEventType () == XmlPullParser .END_TAG
Original file line number Diff line number Diff line change 11package org .schabi .newpipe .settings .preferencesearch ;
22
3- import android .text .TextUtils ;
4-
53import androidx .preference .PreferenceCategory ;
64import androidx .preference .PreferenceScreen ;
75
86import java .util .Arrays ;
97import java .util .List ;
108import java .util .Objects ;
11- import java .util .function .BinaryOperator ;
129import java .util .stream .Stream ;
1310
1411public class PreferenceSearchConfiguration {
You can’t perform that action at this time.
0 commit comments