Skip to content

Commit

Permalink
Fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
litetex committed Jan 9, 2022
1 parent 82e32e0 commit 0aedee9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.content.Context;
import android.text.TextUtils;
import android.util.Log;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.XmlRes;
Expand All @@ -14,7 +15,6 @@
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;

/**
Expand Down Expand Up @@ -64,6 +64,8 @@ public List<PreferenceSearchItem> parse(
results.add(result);
}
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());
}
} else if (xpp.getEventType() == XmlPullParser.END_TAG
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package org.schabi.newpipe.settings.preferencesearch;

import android.text.TextUtils;

import androidx.preference.PreferenceCategory;
import androidx.preference.PreferenceScreen;

import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.function.BinaryOperator;
import java.util.stream.Stream;

public class PreferenceSearchConfiguration {
Expand Down

0 comments on commit 0aedee9

Please sign in to comment.