mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-03 08:04:36 +02:00
feat(reddit): remove hide-chat-button
patch
This commit is contained in:
parent
a8d25804f4
commit
96cb62335d
@ -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()
|
||||
}
|
||||
}
|
@ -3,8 +3,6 @@
|
||||
<string name="revanced_disable_screenshot_popup_summary">Disables the popup that shows up when taking a screenshot</string>
|
||||
<string name="revanced_disable_screenshot_popup_title">Disable screenshot popup</string>
|
||||
<string name="revanced_extended_settings_title">ReVanced Extended</string>
|
||||
<string name="revanced_hide_chat_button_summary">Hide chat button in navigation</string>
|
||||
<string name="revanced_hide_chat_button_title">Hide chat button</string>
|
||||
<string name="revanced_hide_create_button_summary">Hide create button in navigation</string>
|
||||
<string name="revanced_hide_create_button_title">Hide create button</string>
|
||||
<string name="revanced_hide_discover_button_summary">Hide discover button in navigation</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user