feat(reddit): remove hide-chat-button patch

This commit is contained in:
inotia00
2023-07-09 08:33:16 +09:00
parent a8d25804f4
commit 96cb62335d
2 changed files with 0 additions and 40 deletions

View File

@ -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()
}
}