feat: use consistent names for patches

This commit is contained in:
oSumAtrIX
2023-05-18 18:59:35 +02:00
parent 7e2502c26b
commit acb9b5fe6b
7 changed files with 26 additions and 20 deletions
@@ -58,7 +58,7 @@ class CommentsPatch : BytecodePatch(
addInstructions(
insertIndex,
"""
invoke-static { v$shortsCommentsButtonRegister }, Lapp/revanced/integrations/patches/HideShortsCommentsButtonPatch;->hideShortsCommentsButton(Landroid/view/View;)V
invoke-static { v$shortsCommentsButtonRegister }, $FILTER_METHOD_DESCRIPTOR
"""
)
}
@@ -66,4 +66,10 @@ class CommentsPatch : BytecodePatch(
return PatchResultSuccess()
}
private companion object {
private const val FILTER_METHOD_DESCRIPTOR =
"Lapp/revanced/integrations/patches/HideShortsCommentsButtonPatch;" +
"->hideShortsCommentsButton(Landroid/view/View;)V"
}
}