fix: don't include all Litho patches, when not included

This commit is contained in:
oSumAtrIX 2023-06-14 02:43:44 +02:00
parent 4aab2a1af6
commit 9952581a32
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 7 additions and 9 deletions

View File

@ -0,0 +1,3 @@
package app.revanced.integrations.patches.components;
final class DummyFilter extends Filter { }

View File

@ -1,9 +1,11 @@
package app.revanced.integrations.patches.components; package app.revanced.integrations.patches.components;
import android.os.Build; import android.os.Build;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi; import androidx.annotation.RequiresApi;
import app.revanced.integrations.settings.SettingsEnum;
import app.revanced.integrations.utils.LogHelper;
import app.revanced.integrations.utils.ReVancedUtils;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.util.ArrayList; import java.util.ArrayList;
@ -12,10 +14,6 @@ import java.util.Iterator;
import java.util.Spliterator; import java.util.Spliterator;
import java.util.function.Consumer; import java.util.function.Consumer;
import app.revanced.integrations.settings.SettingsEnum;
import app.revanced.integrations.utils.LogHelper;
import app.revanced.integrations.utils.ReVancedUtils;
abstract class FilterGroup<T> { abstract class FilterGroup<T> {
final static class FilterGroupResult { final static class FilterGroupResult {
private final boolean filtered; private final boolean filtered;
@ -235,10 +233,7 @@ abstract class Filter {
@SuppressWarnings("unused") @SuppressWarnings("unused")
public final class LithoFilterPatch { public final class LithoFilterPatch {
private static final Filter[] filters = new Filter[]{ private static final Filter[] filters = new Filter[]{
new AdsFilter(), new DummyFilter() // Replaced by patch.
new ButtonsFilter(),
new CommentsFilter(),
new ShortsFilter()
}; };
@SuppressWarnings("unused") @SuppressWarnings("unused")