From ecb2e32b1e296590d150bdd3f8bea2665b19a84d Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Fri, 8 Sep 2023 00:10:57 +0400 Subject: [PATCH] fix(YouTube - Custom filter): Use new lines between components instead of commas (#2952) Co-authored-by: oSumAtrIX --- .../layout/hide/general/patch/HideLayoutComponentsPatch.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/patch/HideLayoutComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/patch/HideLayoutComponentsPatch.kt index 05ab28181d..6dfa874088 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/patch/HideLayoutComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/patch/HideLayoutComponentsPatch.kt @@ -11,6 +11,7 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.util.smali.ExternalLabel +import app.revanced.patches.shared.settings.preference.impl.InputType import app.revanced.patches.shared.settings.preference.impl.StringResource import app.revanced.patches.shared.settings.preference.impl.SwitchPreference import app.revanced.patches.shared.settings.preference.impl.TextPreference @@ -234,8 +235,9 @@ class HideLayoutComponentsPatch : BytecodePatch( StringResource("revanced_custom_filter_strings_title", "Custom filter"), StringResource( "revanced_custom_filter_strings_summary", - "Filter components by their name separated by a comma" - ) + "List of components to filter separated by new line" + ), + inputType = InputType.TEXT_MULTI_LINE ) ) )