From 71506625aca42aa4901878c0f706793e17ca5607 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sat, 25 Feb 2023 00:00:58 +0100 Subject: [PATCH] feat(youtube/disable-player-popup-panels): use better patch description Signed-off-by: oSumAtrIX --- .../annotations/PlayerPopupPanelsCompatibility.kt | 2 +- .../EngagementPanelControllerFingerprint.kt | 2 +- .../patch/PlayerPopupPanelsPatch.kt} | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) rename src/main/kotlin/app/revanced/patches/youtube/layout/panels/{fullscreen => }/popup/annotations/PlayerPopupPanelsCompatibility.kt (80%) rename src/main/kotlin/app/revanced/patches/youtube/layout/panels/{fullscreen => }/popup/fingerprints/EngagementPanelControllerFingerprint.kt (89%) rename src/main/kotlin/app/revanced/patches/youtube/layout/panels/{fullscreen/popup/patch/FullscreenPanelsPatch.kt => popup/patch/PlayerPopupPanelsPatch.kt} (81%) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/panels/fullscreen/popup/annotations/PlayerPopupPanelsCompatibility.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/annotations/PlayerPopupPanelsCompatibility.kt similarity index 80% rename from src/main/kotlin/app/revanced/patches/youtube/layout/panels/fullscreen/popup/annotations/PlayerPopupPanelsCompatibility.kt rename to src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/annotations/PlayerPopupPanelsCompatibility.kt index 0c0d4491f..4f8a19440 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/panels/fullscreen/popup/annotations/PlayerPopupPanelsCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/annotations/PlayerPopupPanelsCompatibility.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.youtube.layout.panels.fullscreen.popup.annotations +package app.revanced.patches.youtube.layout.panels.popup.annotations import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Package diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/panels/fullscreen/popup/fingerprints/EngagementPanelControllerFingerprint.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/fingerprints/EngagementPanelControllerFingerprint.kt similarity index 89% rename from src/main/kotlin/app/revanced/patches/youtube/layout/panels/fullscreen/popup/fingerprints/EngagementPanelControllerFingerprint.kt rename to src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/fingerprints/EngagementPanelControllerFingerprint.kt index 5f4522edf..c09853574 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/panels/fullscreen/popup/fingerprints/EngagementPanelControllerFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/fingerprints/EngagementPanelControllerFingerprint.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.youtube.layout.panels.fullscreen.popup.fingerprints +package app.revanced.patches.youtube.layout.panels.popup.fingerprints import app.revanced.patcher.extensions.or import app.revanced.patcher.fingerprint.method.annotation.FuzzyPatternScanMethod diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/panels/fullscreen/popup/patch/FullscreenPanelsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/patch/PlayerPopupPanelsPatch.kt similarity index 81% rename from src/main/kotlin/app/revanced/patches/youtube/layout/panels/fullscreen/popup/patch/FullscreenPanelsPatch.kt rename to src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/patch/PlayerPopupPanelsPatch.kt index 33435107f..a8dabc9ca 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/panels/fullscreen/popup/patch/FullscreenPanelsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/patch/PlayerPopupPanelsPatch.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.youtube.layout.panels.fullscreen.popup.patch +package app.revanced.patches.youtube.layout.panels.popup.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description @@ -13,18 +13,18 @@ import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch import app.revanced.patches.shared.settings.preference.impl.StringResource import app.revanced.patches.shared.settings.preference.impl.SwitchPreference -import app.revanced.patches.youtube.layout.panels.fullscreen.popup.annotations.PlayerPopupPanelsCompatibility -import app.revanced.patches.youtube.layout.panels.fullscreen.popup.fingerprints.EngagementPanelControllerFingerprint +import app.revanced.patches.youtube.layout.panels.popup.annotations.PlayerPopupPanelsCompatibility +import app.revanced.patches.youtube.layout.panels.popup.fingerprints.EngagementPanelControllerFingerprint import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @Patch @DependsOn([IntegrationsPatch::class, SettingsPatch::class]) -@Name("disable-fullscreen-panels-auto-popup") -@Description("Disables fullscreen panels from appearing automatically when going fullscreen (playlist or live chat).") +@Name("disable-player-popup-panels") +@Description("Disables panels from appearing automatically when going into fullscreen (playlist or live chat).") @PlayerPopupPanelsCompatibility @Version("0.0.1") -class FullscreenPanelsPatch : BytecodePatch( +class PlayerPopupPanelsPatch : BytecodePatch( listOf( EngagementPanelControllerFingerprint )