From cdf45b3a95b813a0552ab21001c6c0e33ffc4cd9 Mon Sep 17 00:00:00 2001 From: inotia00 Date: Tue, 27 Jun 2023 02:10:38 +0900 Subject: [PATCH] fix(reddit): change SettingsEnum name and patch name --- .../patch/ScreenshotPopupPatch.kt | 6 +++--- .../reddit/settings/host/values/strings.xml | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/reddit/layout/screenshotpopup/patch/ScreenshotPopupPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/layout/screenshotpopup/patch/ScreenshotPopupPatch.kt index 5060387b1..6905428d7 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/layout/screenshotpopup/patch/ScreenshotPopupPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/layout/screenshotpopup/patch/ScreenshotPopupPatch.kt @@ -20,8 +20,8 @@ import app.revanced.patches.reddit.utils.settings.bytecode.patch.SettingsPatch import app.revanced.patches.reddit.utils.settings.bytecode.patch.SettingsPatch.Companion.updateSettingsStatus @Patch -@Name("hide-screenshot-popup") -@Description("Hides the popup when taking a screenshot.") +@Name("disable-screenshot-popup") +@Description("Disables the popup that shows up when taking a screenshot.") @DependsOn( [ SettingsPatch::class, @@ -56,6 +56,6 @@ class ScreenshotPopupPatch : BytecodePatch( private companion object { private const val INTEGRATIONS_METHOD_DESCRIPTOR = "Lapp/revanced/reddit/patches/ScreenshotPopupPatch;" + - "->hideScreenshotPopup()Z" + "->disableScreenshotPopup()Z" } } diff --git a/src/main/resources/reddit/settings/host/values/strings.xml b/src/main/resources/reddit/settings/host/values/strings.xml index 628470d76..33e31d64a 100644 --- a/src/main/resources/reddit/settings/host/values/strings.xml +++ b/src/main/resources/reddit/settings/host/values/strings.xml @@ -1,12 +1,12 @@ - Skips over redirection URLs to external links - Open links directly - Open links outside of the app directly in your browser - Open links externally - Removes (tracking) query parameters from the URLs when sharing links - Sanitize sharing links + Disables the popup that shows up when taking a screenshot + Disable screenshot popup ReVanced Extended - Hides the popup when taking a screenshot - Hide screenshot popup + Skips over redirection URLs to external links + Open links directly + Open links outside of the app directly in your browser + Open links externally + Removes (tracking) query parameters from the URLs when sharing links + Sanitize sharing links