Replaced implicit boxing with explicit boxing in Java file.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 10 Nov 2013 17:42:01 +0100
changeset 7937 aa2c57356aa8
parent 7936 b6e031159985
child 7938 735989a5d280
Replaced implicit boxing with explicit boxing in Java file.
android-project/src/org/libsdl/app/SDLActivity.java
--- a/android-project/src/org/libsdl/app/SDLActivity.java	Sun Nov 10 17:40:26 2013 +0100
+++ b/android-project/src/org/libsdl/app/SDLActivity.java	Sun Nov 10 17:42:01 2013 +0100
@@ -845,7 +845,7 @@
         int[] deviceIds = InputDevice.getDeviceIds();
         for(int i=0; i<deviceIds.length; i++) {
             if( (InputDevice.getDevice(deviceIds[i]).getSources() & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
-                mJoyIdList.add(deviceIds[i]);
+                mJoyIdList.add(Integer.valueOf(deviceIds[i]));
             }
         }
     }
@@ -860,13 +860,13 @@
     @Override
     public String getJoystickName(int joy) {
         createJoystickList();
-        return InputDevice.getDevice(mJoyIdList.get(joy)).getName();
+        return InputDevice.getDevice(mJoyIdList.get(joy).intValue()).getName();
     }
     
     @Override
     public int getJoystickAxes(int joy) {
         createJoystickList();
-        return InputDevice.getDevice(mJoyIdList.get(joy)).getMotionRanges().size();
+        return InputDevice.getDevice(mJoyIdList.get(joy).intValue()).getMotionRanges().size();
     }
     
     @Override
@@ -876,7 +876,7 @@
         createJoystickList();
         
         for(i=0; i<mJoyIdList.size(); i++) {
-            if(mJoyIdList.get(i) == devId) {
+            if(mJoyIdList.get(i).intValue() == devId) {
                 return i;
             }
         }