diff options
author | Sven Gothel <[email protected]> | 2012-03-10 05:55:52 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-03-10 05:55:52 +0100 |
commit | 558a674f5ed727be1536cffd882d43458ce47a37 (patch) | |
tree | bf2fee28995df514162884797465284ed43f33b6 /src | |
parent | 95aa933182a6e5c989285b2cb7f7d35aa0f2aa62 (diff) |
Android: Minor cleanup ; NewtBaseActivity: clear static context at destroy
Diffstat (limited to 'src')
3 files changed, 2 insertions, 3 deletions
diff --git a/src/android/com/jogamp/android/launcher/NEWTLauncherActivity.java b/src/android/com/jogamp/android/launcher/NEWTLauncherActivity.java index 3120fc73e..14f074c0c 100644 --- a/src/android/com/jogamp/android/launcher/NEWTLauncherActivity.java +++ b/src/android/com/jogamp/android/launcher/NEWTLauncherActivity.java @@ -33,8 +33,6 @@ import java.lang.reflect.Method; import android.app.Activity; import android.os.Bundle; -import android.view.Window; -import android.view.WindowManager; import android.widget.TextView; import android.util.Log; diff --git a/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java b/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java index f56e9bb5f..5cef22a6c 100644 --- a/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java +++ b/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java @@ -259,7 +259,7 @@ public class AndroidWindow extends jogamp.newt.WindowImpl implements Callback2 { protected void androidWindowConfigurationPreCreate() { if( null != androidWindow) { if( isFullscreen() || isUndecorated() ) { - boolean r = androidWindow.requestFeature(Window.FEATURE_NO_TITLE); + androidWindow.requestFeature(Window.FEATURE_NO_TITLE); } if( isFullscreen() ) { androidWindow.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); diff --git a/src/newt/classes/jogamp/newt/driver/android/NewtBaseActivity.java b/src/newt/classes/jogamp/newt/driver/android/NewtBaseActivity.java index f7c05cd45..97309b352 100644 --- a/src/newt/classes/jogamp/newt/driver/android/NewtBaseActivity.java +++ b/src/newt/classes/jogamp/newt/driver/android/NewtBaseActivity.java @@ -157,6 +157,7 @@ public class NewtBaseActivity extends Activity { newtWindow.destroy(); newtWindow = null; } + jogamp.common.os.android.StaticContext.setContext(null); if(!isInvokedByExternalActivity) { super.onDestroy(); } |