Changed signature of method recently added in Java file.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 05 May 2013 15:50:21 +0200
changeset 7148 700a60e425cc
parent 7147 370f207f24ec
child 7149 534891ad4897
Changed signature of method recently added in Java file.
android-project/src/org/libsdl/app/SDLActivity.java
--- a/android-project/src/org/libsdl/app/SDLActivity.java	Sun May 05 15:39:37 2013 +0200
+++ b/android-project/src/org/libsdl/app/SDLActivity.java	Sun May 05 15:50:21 2013 +0200
@@ -120,10 +120,11 @@
      * 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;
     }
 
@@ -158,7 +159,7 @@
                 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);
                 }
             }