mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-24 00:50:32 +00:00
rename Search Query handler
This commit is contained in:
parent
b0efe49e29
commit
c2d11e786f
@ -54,7 +54,7 @@ dependencies {
|
|||||||
exclude module: 'support-annotations'
|
exclude module: 'support-annotations'
|
||||||
}
|
}
|
||||||
|
|
||||||
implementation 'com.github.TeamNewPipe:NewPipeExtractor:701666f4982514'
|
implementation 'com.github.TeamNewPipe:NewPipeExtractor:aeb813840d6'
|
||||||
|
|
||||||
testImplementation 'junit:junit:4.12'
|
testImplementation 'junit:junit:4.12'
|
||||||
testImplementation 'org.mockito:mockito-core:2.8.9'
|
testImplementation 'org.mockito:mockito-core:2.8.9'
|
||||||
|
@ -365,7 +365,7 @@ public class SearchFragment
|
|||||||
int itemId = 0;
|
int itemId = 0;
|
||||||
boolean isFirstItem = true;
|
boolean isFirstItem = true;
|
||||||
final Context c = getContext();
|
final Context c = getContext();
|
||||||
for(String filter : service.getSearchQIHFactory().getAvailableContentFilter()) {
|
for(String filter : service.getSearchQHFactory().getAvailableContentFilter()) {
|
||||||
menuItemToFilterName.put(itemId, filter);
|
menuItemToFilterName.put(itemId, filter);
|
||||||
MenuItem item = menu.add(1,
|
MenuItem item = menu.add(1,
|
||||||
itemId++,
|
itemId++,
|
||||||
|
@ -73,7 +73,7 @@ public final class ExtractorHelper {
|
|||||||
return Single.fromCallable(() ->
|
return Single.fromCallable(() ->
|
||||||
SearchInfo.getInfo(NewPipe.getService(serviceId),
|
SearchInfo.getInfo(NewPipe.getService(serviceId),
|
||||||
NewPipe.getService(serviceId)
|
NewPipe.getService(serviceId)
|
||||||
.getSearchQIHFactory()
|
.getSearchQHFactory()
|
||||||
.fromQuery(searchString, contentFilter, sortFilter),
|
.fromQuery(searchString, contentFilter, sortFilter),
|
||||||
contentCountry));
|
contentCountry));
|
||||||
}
|
}
|
||||||
@ -88,7 +88,7 @@ public final class ExtractorHelper {
|
|||||||
return Single.fromCallable(() ->
|
return Single.fromCallable(() ->
|
||||||
SearchInfo.getMoreItems(NewPipe.getService(serviceId),
|
SearchInfo.getMoreItems(NewPipe.getService(serviceId),
|
||||||
NewPipe.getService(serviceId)
|
NewPipe.getService(serviceId)
|
||||||
.getSearchQIHFactory()
|
.getSearchQHFactory()
|
||||||
.fromQuery(searchString, contentFilter, sortFilter),
|
.fromQuery(searchString, contentFilter, sortFilter),
|
||||||
contentCountry,
|
contentCountry,
|
||||||
pageUrl));
|
pageUrl));
|
||||||
|
Loading…
Reference in New Issue
Block a user