Changed signature of method recently added in Java file.
This commit is contained in:
parent
023c495919
commit
89805a7cae
1 changed files with 5 additions and 4 deletions
|
@ -120,10 +120,11 @@ public class SDLActivity extends Activity {
|
||||||
* This method is called by SDL if SDL did not handle a message itself.
|
* This method is called by SDL if SDL did not handle a message itself.
|
||||||
* This happens if a received message contains an unsupported command.
|
* This happens if a received message contains an unsupported command.
|
||||||
* Method can be overwritten to handle Messages in a different class.
|
* Method can be overwritten to handle Messages in a different class.
|
||||||
* @param msg the Message which was not handled.
|
* @param command the command of the message.
|
||||||
* @return if the Message was handled in method.
|
* @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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,7 +159,7 @@ public class SDLActivity extends Activity {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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);
|
Log.e(TAG, "error handling message, command is " + msg.arg1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue