diff --git a/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/ChatButtonPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/ChatButtonPatch.kt deleted file mode 100644 index 862d0bb24..000000000 --- a/src/main/kotlin/app/revanced/patches/reddit/layout/navigation/patch/ChatButtonPatch.kt +++ /dev/null @@ -1,38 +0,0 @@ -package app.revanced.patches.reddit.layout.navigation.patch - -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version -import app.revanced.patcher.data.BytecodeContext -import app.revanced.patcher.patch.BytecodePatch -import app.revanced.patcher.patch.PatchResult -import app.revanced.patcher.patch.PatchResultSuccess -import app.revanced.patcher.patch.annotations.DependsOn -import app.revanced.patcher.patch.annotations.Patch -import app.revanced.patches.reddit.layout.navigation.annotations.NavigationButtonsCompatibility -import app.revanced.patches.reddit.layout.navigation.patch.NavigationButtonsPatch.Companion.setValue -import app.revanced.patches.reddit.utils.settings.bytecode.patch.SettingsBytecodePatch.Companion.updateSettingsStatus -import app.revanced.patches.reddit.utils.settings.resource.patch.SettingsPatch - -@Patch -@Name("hide-chat-button") -@Description("Hide chat button at navigation bar.") -@DependsOn( - [ - NavigationButtonsPatch::class, - SettingsPatch::class - ] -) -@NavigationButtonsCompatibility -@Version("0.0.1") -class ChatButtonPatch : BytecodePatch() { - override fun execute(context: BytecodeContext): PatchResult { - - updateSettingsStatus("ChatButtons") - - if (SettingsPatch.RedditSettings == true) - context.setValue("ChatButtons") - - return PatchResultSuccess() - } -} diff --git a/src/main/resources/reddit/settings/host/values/strings.xml b/src/main/resources/reddit/settings/host/values/strings.xml index 09b77dae0..d1796e317 100644 --- a/src/main/resources/reddit/settings/host/values/strings.xml +++ b/src/main/resources/reddit/settings/host/values/strings.xml @@ -3,8 +3,6 @@ Disables the popup that shows up when taking a screenshot Disable screenshot popup ReVanced Extended - Hide chat button in navigation - Hide chat button Hide create button in navigation Hide create button Hide discover button in navigation