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/android/com/jogamp/android/launcher/NEWTLauncherActivity.java | 2 -- src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java | 2 +- src/newt/classes/jogamp/newt/driver/android/NewtBaseActivity.java | 1 + 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(); } -- cgit v1.2.3