Fixed implicit boxing and unboxing of Java Objects warning.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Thu, 29 May 2014 22:53:53 +0200
changeset 8788 05a871c80890
parent 8787 8e20b31043cb
child 8789 166684938ac6
Fixed implicit boxing and unboxing of Java Objects warning.
android-project/src/org/libsdl/app/SDLActivity.java
--- a/android-project/src/org/libsdl/app/SDLActivity.java	Thu May 29 22:48:10 2014 +0200
+++ b/android-project/src/org/libsdl/app/SDLActivity.java	Thu May 29 22:53:53 2014 +0200
@@ -1018,12 +1018,12 @@
                 if (device_id == deviceIds[j]) break;
             }
             if (j == deviceIds.length) {
-                removedDevices.add(device_id);
+                removedDevices.add(Integer.valueOf(device_id));
             }
         }
             
         for(int i=0; i < removedDevices.size(); i++) {
-            int device_id = removedDevices.get(i);
+            int device_id = removedDevices.get(i).intValue();
             SDLActivity.nativeRemoveJoystick(device_id);
             for (int j=0; j < mJoysticks.size(); j++) {
                 if (mJoysticks.get(j).device_id == device_id) {