diff --git a/app/src/main/java/app/revanced/integrations/patches/components/ShortsFilter.java b/app/src/main/java/app/revanced/integrations/patches/components/ShortsFilter.java index 4fbd97d3..4664c424 100644 --- a/app/src/main/java/app/revanced/integrations/patches/components/ShortsFilter.java +++ b/app/src/main/java/app/revanced/integrations/patches/components/ShortsFilter.java @@ -43,6 +43,16 @@ public final class ShortsFilter extends Filter { "sponsor_button" ); + final var soundButton = new StringFilterGroup( + SettingsEnum.HIDE_SHORTS_SOUND_BUTTON, + "reel_pivot_button" + ); + + final var channelBar = new StringFilterGroup( + SettingsEnum.HIDE_SHORTS_CHANNEL_BAR, + "reel_channel_bar" + ); + final var shorts = new StringFilterGroup( SettingsEnum.HIDE_SHORTS, "shorts_shelf", @@ -50,12 +60,13 @@ public final class ShortsFilter extends Filter { "shorts_grid" ); - this.pathFilterGroups.addAll(joinButton, subscribeButton); + this.pathFilterGroups.addAll(joinButton, subscribeButton, soundButton, channelBar); this.identifierFilterGroups.addAll(shorts, thanksButton); } @Override - boolean isFiltered(final String path, final String identifier, final byte[] protobufBufferArray) { + boolean isFiltered(final String path, final String identifier, + final byte[] protobufBufferArray) { // Filter the path only when reelChannelBar is visible. if (reelChannelBar.check(path).isFiltered()) if (this.pathFilterGroups.contains(path)) return true; diff --git a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java index 9d95783d..6ead607e 100644 --- a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java +++ b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java @@ -140,6 +140,8 @@ public enum SettingsEnum { HIDE_SHORTS_REMIX_BUTTON("revanced_hide_shorts_remix_button", BOOLEAN, TRUE), HIDE_SHORTS_SHARE_BUTTON("revanced_hide_shorts_share_button", BOOLEAN, FALSE), HIDE_SHORTS_INFO_PANEL("revanced_hide_shorts_info_panel", BOOLEAN, TRUE), + HIDE_SHORTS_SOUND_BUTTON("revanced_hide_shorts_sound_button", BOOLEAN, FALSE), + HIDE_SHORTS_CHANNEL_BAR("revanced_hide_shorts_channel_bar", BOOLEAN, FALSE), HIDE_SHORTS_NAVIGATION_BAR("revanced_hide_shorts_navigation_bar", BOOLEAN, TRUE, true), HIDE_SHORTS("revanced_hide_shorts", BOOLEAN, FALSE, true),