Skip to content

Commit

Permalink
fix: deprecate instead of deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
LisoUseInAIKyrios committed Mar 10, 2024
1 parent c28f7fa commit b5a2b09
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
import com.android.tools.smali.dexlib2.iface.reference.FieldReference

@Deprecated("Patch is obsolete and the hooked code is no longer present in 19.09+")
@Patch(
name = "HDR auto brightness",
description = "Adds an option to make the brightness of HDR videos follow the system default.",
dependencies = [IntegrationsPatch::class, SettingsPatch::class, AddResourcesPatch::class],
compatiblePackages = [
Expand Down Expand Up @@ -43,12 +43,6 @@ object HDRBrightnessPatch : BytecodePatch(
setOf(HDRBrightnessFingerprint)
) {
override fun execute(context: BytecodeContext) {
AddResourcesPatch(this::class)

SettingsPatch.PreferenceScreen.VIDEO.addPreferences(
SwitchPreference("revanced_hdr_auto_brightness")
)

val method = HDRBrightnessFingerprint.result!!.mutableMethod

method.implementation!!.instructions.filter { instruction ->
Expand Down

0 comments on commit b5a2b09

Please sign in to comment.