From 558a674f5ed727be1536cffd882d43458ce47a37 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 10 Mar 2012 05:55:52 +0100 Subject: Android: Minor cleanup ; NewtBaseActivity: clear static context at destroy --- src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java | 2 +- src/newt/classes/jogamp/newt/driver/android/NewtBaseActivity.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/newt') 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(); } -- cgit v1.2.3