There's no need to keep these private. If you extend SDLActivity, you should know what you're doing.
authorSam Lantinga <slouken@libsdl.org>
Wed, 15 May 2013 23:18:29 -0700
changeset 7179 d6acc2d7f760
parent 7178 8e2156e2ff3e
child 7180 3733e68edbc3
There's no need to keep these private. If you extend SDLActivity, you should know what you're doing.
android-project/src/org/libsdl/app/SDLActivity.java
--- a/android-project/src/org/libsdl/app/SDLActivity.java	Wed May 15 22:25:00 2013 +0200
+++ b/android-project/src/org/libsdl/app/SDLActivity.java	Wed May 15 23:18:29 2013 -0700
@@ -30,24 +30,24 @@
     public static boolean mIsPaused = false;
 
     // Main components
-    private static SDLActivity mSingleton;
-    private static SDLSurface mSurface;
-    private static View mTextEdit;
-    private static ViewGroup mLayout;
+    protected static SDLActivity mSingleton;
+    protected static SDLSurface mSurface;
+    protected static View mTextEdit;
+    protected static ViewGroup mLayout;
 
     // This is what SDL runs in. It invokes SDL_main(), eventually
-    private static Thread mSDLThread;
+    protected static Thread mSDLThread;
 
     // Audio
-    private static Thread mAudioThread;
-    private static AudioTrack mAudioTrack;
+    protected static Thread mAudioThread;
+    protected static AudioTrack mAudioTrack;
 
     // EGL private objects
-    private static EGLContext  mEGLContext;
-    private static EGLSurface  mEGLSurface;
-    private static EGLDisplay  mEGLDisplay;
-    private static EGLConfig   mEGLConfig;
-    private static int mGLMajor, mGLMinor;
+    protected static EGLContext  mEGLContext;
+    protected static EGLSurface  mEGLSurface;
+    protected static EGLDisplay  mEGLDisplay;
+    protected static EGLConfig   mEGLConfig;
+    protected static int mGLMajor, mGLMinor;
 
     // Load the .so
     static {
@@ -493,10 +493,10 @@
     View.OnKeyListener, View.OnTouchListener, SensorEventListener  {
 
     // Sensors
-    private static SensorManager mSensorManager;
+    protected static SensorManager mSensorManager;
 
     // Keep track of the surface size to normalize touch events
-    private static float mWidth, mHeight;
+    protected static float mWidth, mHeight;
 
     // Startup    
     public SDLSurface(Context context) {