Skip to content

Commit 6060e44

Browse files
author
duangsuse
authored
Bug Fix: onCreateOptionsMenu call wrong function
Expected: register onCreateOptionsMenuCall to function a, a called BSHActivity do: if onCreateCall not null, onCreateCall function called, if not, do nothing.
1 parent e4538f6 commit 6060e44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/org/duangsuse/tree/BSHActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public boolean onPrepareOptionsMenu(Menu menu) {
245245
public boolean onCreateOptionsMenu(Menu menu) {
246246
if (onCreateOptionsMenuCall != null) {
247247
SetParam("menu", menu);
248-
InvokeMethod(onCreateCall);
248+
InvokeMethod(onCreateOptionsMenuCall);
249249
}
250250
return super.onCreateOptionsMenu(menu);
251251
}
@@ -400,4 +400,4 @@ public void onWindowFocusChanged(boolean hasFocus) {
400400
InvokeMethod(onWindowFocusChangedCall);
401401
}
402402
}
403-
}
403+
}

0 commit comments

Comments
 (0)