mirror of
https://github.com/MaintainTeam/LastPipeBender.git
synced 2025-03-01 22:08:22 +03:00
searchfilters: convert SparseIntCompat to SparseArrayCompat to get the unit test working
This commit is contained in:
parent
eec3cec52c
commit
f24fdcd9e3
1 changed files with 4 additions and 4 deletions
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
package org.schabi.newpipe.fragments.list.search.filter;
|
package org.schabi.newpipe.fragments.list.search.filter;
|
||||||
|
|
||||||
import android.util.SparseIntArray;
|
|
||||||
|
|
||||||
import org.schabi.newpipe.extractor.linkhandler.SearchQueryHandlerFactory;
|
import org.schabi.newpipe.extractor.linkhandler.SearchQueryHandlerFactory;
|
||||||
import org.schabi.newpipe.extractor.search.filter.FilterContainer;
|
import org.schabi.newpipe.extractor.search.filter.FilterContainer;
|
||||||
import org.schabi.newpipe.extractor.search.filter.FilterGroup;
|
import org.schabi.newpipe.extractor.search.filter.FilterGroup;
|
||||||
|
@ -643,7 +641,8 @@ public class SearchFilterLogic {
|
||||||
*/
|
*/
|
||||||
private static class ExclusiveGroups {
|
private static class ExclusiveGroups {
|
||||||
|
|
||||||
final SparseIntArray actualSelectedFilterIdInExclusiveGroupMap = new SparseIntArray();
|
final SparseArrayCompat<Integer> actualSelectedFilterIdInExclusiveGroupMap =
|
||||||
|
new SparseArrayCompat<>();
|
||||||
/**
|
/**
|
||||||
* To quickly determine if a content filter group supports
|
* To quickly determine if a content filter group supports
|
||||||
* only one item selected (exclusiveness), we need a set that resembles that.
|
* only one item selected (exclusiveness), we need a set that resembles that.
|
||||||
|
@ -653,7 +652,8 @@ public class SearchFilterLogic {
|
||||||
* To quickly determine if a content filter id belongs to an exclusive group.
|
* To quickly determine if a content filter id belongs to an exclusive group.
|
||||||
* This maps works in conjunction with {@link #exclusiveGroupsIdSet}
|
* This maps works in conjunction with {@link #exclusiveGroupsIdSet}
|
||||||
*/
|
*/
|
||||||
private final SparseIntArray filterIdToGroupIdMap = new SparseIntArray();
|
private final SparseArrayCompat<Integer> filterIdToGroupIdMap =
|
||||||
|
new SparseArrayCompat<>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear {@link #exclusiveGroupsIdSet} and {@link #filterIdToGroupIdMap}.
|
* Clear {@link #exclusiveGroupsIdSet} and {@link #filterIdToGroupIdMap}.
|
||||||
|
|
Loading…
Add table
Reference in a new issue