Skip to content

Commit 8362b61

Browse files
committed
Fix finding prepareMenu method
Close #160.
1 parent 04138a0 commit 8362b61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/org/matrix/chromext/hook/PageMenu.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ object PageMenuHook : BaseHook() {
156156
parameterTypes.size == 2 &&
157157
parameterTypes.first() == Menu::class.java &&
158158
returnType == Void.TYPE &&
159-
!Modifier.isStatic(modifiers)
159+
!Modifier.isStatic(modifiers) &&
160+
!Modifier.isAbstract(modifiers)
160161
}
161162
// public void prepareMenu(Menu menu, AppMenuHandler handler)
162163
.hookAfter inflate@{

0 commit comments

Comments
 (0)