fix(youtube/hide-general-ads): crash or force close due to incorrect class path

This commit is contained in:
inotia00 2023-05-12 08:13:49 +09:00
parent 565e06db20
commit ffb045251a
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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