Fixed imports
This commit is contained in:
parent
03bb2123f2
commit
7067ebdd12
2 changed files with 3 additions and 4 deletions
|
@ -3,6 +3,7 @@ package org.schabi.newpipe.settings.preferencesearch;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.annotation.XmlRes;
|
import androidx.annotation.XmlRes;
|
||||||
|
@ -14,7 +15,6 @@ import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -64,6 +64,8 @@ public class PreferenceParser {
|
||||||
results.add(result);
|
results.add(result);
|
||||||
}
|
}
|
||||||
if (searchConfiguration.getParserContainerElements().contains(xpp.getName())) {
|
if (searchConfiguration.getParserContainerElements().contains(xpp.getName())) {
|
||||||
|
// This code adds breadcrumbs for certain containers (e.g. PreferenceScreen)
|
||||||
|
// Example: Video and Audio > Player
|
||||||
breadcrumbs.add(result.getTitle() == null ? "" : result.getTitle());
|
breadcrumbs.add(result.getTitle() == null ? "" : result.getTitle());
|
||||||
}
|
}
|
||||||
} else if (xpp.getEventType() == XmlPullParser.END_TAG
|
} else if (xpp.getEventType() == XmlPullParser.END_TAG
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
package org.schabi.newpipe.settings.preferencesearch;
|
package org.schabi.newpipe.settings.preferencesearch;
|
||||||
|
|
||||||
import android.text.TextUtils;
|
|
||||||
|
|
||||||
import androidx.preference.PreferenceCategory;
|
import androidx.preference.PreferenceCategory;
|
||||||
import androidx.preference.PreferenceScreen;
|
import androidx.preference.PreferenceScreen;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.function.BinaryOperator;
|
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
public class PreferenceSearchConfiguration {
|
public class PreferenceSearchConfiguration {
|
||||||
|
|
Loading…
Reference in a new issue