mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-25 16:36:57 +00:00
Add comment
This commit is contained in:
parent
9b1861417c
commit
8f4c6fb6ac
@ -589,12 +589,14 @@ public class SearchFragment extends BaseListFragment<SearchInfo, ListExtractor.I
|
||||
|
||||
@Override
|
||||
public void afterTextChanged(final Editable s) {
|
||||
// Remove rich text formatting
|
||||
final CharacterStyle[] toBeRemovedSpans = s.getSpans(
|
||||
0, s.length(), CharacterStyle.class
|
||||
);
|
||||
for (final CharacterStyle toBeRemovedSpan : toBeRemovedSpans) {
|
||||
s.removeSpan(toBeRemovedSpan);
|
||||
}
|
||||
|
||||
final String newText = searchEditText.getText().toString();
|
||||
suggestionPublisher.onNext(newText);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user