Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Changed signature of method recently added in Java file.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed May 5, 2013
1 parent a497721 commit 7fc70b1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions android-project/src/org/libsdl/app/SDLActivity.java
Expand Up @@ -120,10 +120,11 @@ protected void onDestroy() {
* This method is called by SDL if SDL did not handle a message itself.
* This happens if a received message contains an unsupported command.
* Method can be overwritten to handle Messages in a different class.
* @param msg the Message which was not handled.
* @return if the Message was handled in method.
* @param command the command of the message.
* @param param the parameter of the message. May be null.
* @return if the message was handled in overridden method.
*/
protected boolean onUnhandledMessage(Message msg) {
protected boolean onUnhandledMessage(int command, Object param) {
return false;
}

Expand Down Expand Up @@ -158,7 +159,7 @@ public void handleMessage(Message msg) {
break;

default:
if ((context instanceof SDLActivity) && !((SDLActivity) context).onUnhandledMessage(msg)) {
if ((context instanceof SDLActivity) && !((SDLActivity) context).onUnhandledMessage(msg.arg1, msg.obj)) {
Log.e(TAG, "error handling message, command is " + msg.arg1);
}
}
Expand Down

0 comments on commit 7fc70b1

Please sign in to comment.