aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-03-29 16:34:56 +0100
committerSven Gothel <[email protected]>2013-03-29 16:34:56 +0100
commit00c65b4a34445d140ca9e6ee531dfa4278b8e770 (patch)
tree009e1ffe1d8c54b3deebfb76043b227250bc90a5
parent0b242442fba01df86be636f54e3d478aa722d6a7 (diff)
NewtBaseActivity: Move setVisible(false) from onPause() -> onStop(), since only onStop() declares invisible status. onPause() could imply other non fullscreen activity on top.
-rw-r--r--src/newt/classes/jogamp/newt/driver/android/NewtBaseActivity.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/android/NewtBaseActivity.java b/src/newt/classes/jogamp/newt/driver/android/NewtBaseActivity.java
index 3716e3569..76eb890e2 100644
--- a/src/newt/classes/jogamp/newt/driver/android/NewtBaseActivity.java
+++ b/src/newt/classes/jogamp/newt/driver/android/NewtBaseActivity.java
@@ -392,10 +392,6 @@ public class NewtBaseActivity extends Activity {
}
Log.d(MD.TAG, "GLStateKeeper.Mark2Preserve: Total "+glAutoDrawables.size()+", OK "+ok+", Fail "+fail);
}
- for(int i=0; i<newtWindows.size(); i++) {
- final Window win = newtWindows.get(i);
- win.setVisible(false);
- }
startAnimation(false);
if( !isDelegatedActivity() ) {
super.onPause();
@@ -406,6 +402,10 @@ public class NewtBaseActivity extends Activity {
@Override
public void onStop() {
Log.d(MD.TAG, "onStop.0");
+ for(int i=0; i<newtWindows.size(); i++) {
+ final Window win = newtWindows.get(i);
+ win.setVisible(false);
+ }
if( !isDelegatedActivity() ) {
super.onStop();
}