Skip to content

Commit

Permalink
Fix finding prepareMenu method
Browse files Browse the repository at this point in the history
Close #160.
  • Loading branch information
JingMatrix committed Apr 2, 2024
1 parent 04138a0 commit 8362b61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/org/matrix/chromext/hook/PageMenu.kt
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ object PageMenuHook : BaseHook() {
parameterTypes.size == 2 &&
parameterTypes.first() == Menu::class.java &&
returnType == Void.TYPE &&
!Modifier.isStatic(modifiers)
!Modifier.isStatic(modifiers) &&
!Modifier.isAbstract(modifiers)
}
// public void prepareMenu(Menu menu, AppMenuHandler handler)
.hookAfter inflate@{
Expand Down

0 comments on commit 8362b61

Please sign in to comment.