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 7179d6acc2d7f760
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
     1.1 --- a/android-project/src/org/libsdl/app/SDLActivity.java	Wed May 15 22:25:00 2013 +0200
     1.2 +++ b/android-project/src/org/libsdl/app/SDLActivity.java	Wed May 15 23:18:29 2013 -0700
     1.3 @@ -30,24 +30,24 @@
     1.4      public static boolean mIsPaused = false;
     1.5  
     1.6      // Main components
     1.7 -    private static SDLActivity mSingleton;
     1.8 -    private static SDLSurface mSurface;
     1.9 -    private static View mTextEdit;
    1.10 -    private static ViewGroup mLayout;
    1.11 +    protected static SDLActivity mSingleton;
    1.12 +    protected static SDLSurface mSurface;
    1.13 +    protected static View mTextEdit;
    1.14 +    protected static ViewGroup mLayout;
    1.15  
    1.16      // This is what SDL runs in. It invokes SDL_main(), eventually
    1.17 -    private static Thread mSDLThread;
    1.18 +    protected static Thread mSDLThread;
    1.19  
    1.20      // Audio
    1.21 -    private static Thread mAudioThread;
    1.22 -    private static AudioTrack mAudioTrack;
    1.23 +    protected static Thread mAudioThread;
    1.24 +    protected static AudioTrack mAudioTrack;
    1.25  
    1.26      // EGL private objects
    1.27 -    private static EGLContext  mEGLContext;
    1.28 -    private static EGLSurface  mEGLSurface;
    1.29 -    private static EGLDisplay  mEGLDisplay;
    1.30 -    private static EGLConfig   mEGLConfig;
    1.31 -    private static int mGLMajor, mGLMinor;
    1.32 +    protected static EGLContext  mEGLContext;
    1.33 +    protected static EGLSurface  mEGLSurface;
    1.34 +    protected static EGLDisplay  mEGLDisplay;
    1.35 +    protected static EGLConfig   mEGLConfig;
    1.36 +    protected static int mGLMajor, mGLMinor;
    1.37  
    1.38      // Load the .so
    1.39      static {
    1.40 @@ -493,10 +493,10 @@
    1.41      View.OnKeyListener, View.OnTouchListener, SensorEventListener  {
    1.42  
    1.43      // Sensors
    1.44 -    private static SensorManager mSensorManager;
    1.45 +    protected static SensorManager mSensorManager;
    1.46  
    1.47      // Keep track of the surface size to normalize touch events
    1.48 -    private static float mWidth, mHeight;
    1.49 +    protected static float mWidth, mHeight;
    1.50  
    1.51      // Startup    
    1.52      public SDLSurface(Context context) {