Commit f5252530d28a7013789b591344f057eeef8e99d5

Sam Lantinga 2019-04-23T14:08:14

Change my previous fix based on feedback from dev @saml

1
2
3
4
5
6
7
8
9
10
11
12
13
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 abf45a5..8917212 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 = ((Integer) msg.obj).intValue();
+                int format = (Integer) msg.obj;
                 int pf;
 
                 if (SDLActivity.mSurface == null) {