Changed signature of method recently added in Java file.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 05 May 2013 15:50:21 +0200
changeset 7148700a60e425cc
parent 7147 370f207f24ec
child 7149 534891ad4897
Changed signature of method recently added in Java file.
android-project/src/org/libsdl/app/SDLActivity.java
     1.1 --- a/android-project/src/org/libsdl/app/SDLActivity.java	Sun May 05 15:39:37 2013 +0200
     1.2 +++ b/android-project/src/org/libsdl/app/SDLActivity.java	Sun May 05 15:50:21 2013 +0200
     1.3 @@ -120,10 +120,11 @@
     1.4       * This method is called by SDL if SDL did not handle a message itself.
     1.5       * This happens if a received message contains an unsupported command.
     1.6       * Method can be overwritten to handle Messages in a different class.
     1.7 -     * @param msg the Message which was not handled.
     1.8 -     * @return if the Message was handled in method.
     1.9 +     * @param command the command of the message.
    1.10 +     * @param param the parameter of the message. May be null.
    1.11 +     * @return if the message was handled in overridden method.
    1.12       */
    1.13 -    protected boolean onUnhandledMessage(Message msg) {
    1.14 +    protected boolean onUnhandledMessage(int command, Object param) {
    1.15          return false;
    1.16      }
    1.17  
    1.18 @@ -158,7 +159,7 @@
    1.19                  break;
    1.20  
    1.21              default:
    1.22 -                if ((context instanceof SDLActivity) && !((SDLActivity) context).onUnhandledMessage(msg)) {
    1.23 +                if ((context instanceof SDLActivity) && !((SDLActivity) context).onUnhandledMessage(msg.arg1, msg.obj)) {
    1.24                      Log.e(TAG, "error handling message, command is " + msg.arg1);
    1.25                  }
    1.26              }