diff --git a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java index 5e5eb04a3..abf45a5ce 100644 --- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java @@ -651,7 +651,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh } case COMMAND_CHANGE_SURFACEVIEW_FORMAT: { - int format = ((int)msg.obj); + int format = ((Integer) msg.obj).intValue(); int pf; if (SDLActivity.mSurface == null) {