fix(ProtonVPN - Remove delay): Make it work on latest version by patching the correct class (#6757)

This commit is contained in:
Sayanth 2026-03-09 23:40:05 +05:30 committed by GitHub
parent d2659637ac
commit e0dc009780
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,13 +1,16 @@
package app.revanced.patches.protonvpn.delay package app.revanced.patches.protonvpn.delay
import app.revanced.patcher.definingClass
import app.revanced.patcher.gettingFirstMethodDeclaratively import app.revanced.patcher.gettingFirstMethodDeclaratively
import app.revanced.patcher.name import app.revanced.patcher.name
import app.revanced.patcher.patch.BytecodePatchContext import app.revanced.patcher.patch.BytecodePatchContext
internal val BytecodePatchContext.longDelayMethod by gettingFirstMethodDeclaratively { internal val BytecodePatchContext.longDelayMethod by gettingFirstMethodDeclaratively {
definingClass("AppConfigResponse;")
name("getChangeServerLongDelayInSeconds") name("getChangeServerLongDelayInSeconds")
} }
internal val BytecodePatchContext.shortDelayMethod by gettingFirstMethodDeclaratively { internal val BytecodePatchContext.shortDelayMethod by gettingFirstMethodDeclaratively {
definingClass("AppConfigResponse;")
name("getChangeServerShortDelayInSeconds") name("getChangeServerShortDelayInSeconds")
} }