aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-03-10 05:55:52 +0100
committerSven Gothel <[email protected]>2012-03-10 05:55:52 +0100
commit558a674f5ed727be1536cffd882d43458ce47a37 (patch)
treebf2fee28995df514162884797465284ed43f33b6 /src/newt
parent95aa933182a6e5c989285b2cb7f7d35aa0f2aa62 (diff)
Android: Minor cleanup ; NewtBaseActivity: clear static context at destroy
Diffstat (limited to 'src/newt')
-rw-r--r--src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java2
-rw-r--r--src/newt/classes/jogamp/newt/driver/android/NewtBaseActivity.java1
2 files changed, 2 insertions, 1 deletions
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();
}