mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-02 15:44:37 +02:00
fix(youtube/hide-general-ads): crash or force close due to incorrect class path
This commit is contained in:
parent
565e06db20
commit
ffb045251a
@ -38,7 +38,7 @@ class GeneralAdsBytecodePatch : BytecodePatch() {
|
||||
|
||||
val viewRegister = instruction<Instruction35c>(insertIndex).registerC
|
||||
|
||||
this.implementation!!.injectHideCall(insertIndex, viewRegister, "ads/GeneralAdsPatch", "hideAdAttributionView")
|
||||
this.implementation!!.injectHideCall(insertIndex, viewRegister, "ads/AdsFilter", "hideAdAttributionView")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ class HideGetPremiumPatch : BytecodePatch(
|
||||
|
||||
addInstructions(
|
||||
startIndex + 2, """
|
||||
invoke-static {}, $PATCHES_PATH/ads/GeneralAdsPatch;->hideGetPremium()Z
|
||||
invoke-static {}, $PATCHES_PATH/ads/AdsFilter;->hideGetPremium()Z
|
||||
move-result v$tempRegister
|
||||
if-eqz v$tempRegister, :show
|
||||
const/4 v$measuredWidthRegister, 0x0
|
||||
|
Loading…
x
Reference in New Issue
Block a user