From 044d81f7e837e2e04875adc554c52b704dd2406f Mon Sep 17 00:00:00 2001 From: "iwg..ic" Date: Fri, 28 Dec 2012 04:47:50 +0000 Subject: [PATCH] Add calls to loseFocus and gainFocus when activity pauses and resumes git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10048 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/android/com/jme3/app/AndroidHarness.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/src/android/com/jme3/app/AndroidHarness.java b/engine/src/android/com/jme3/app/AndroidHarness.java index caf875007..3b97f02bd 100644 --- a/engine/src/android/com/jme3/app/AndroidHarness.java +++ b/engine/src/android/com/jme3/app/AndroidHarness.java @@ -274,10 +274,14 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt } isGLThreadPaused = false; + + gainFocus(); } @Override protected void onPause() { + loseFocus(); + logger.info("onPause"); super.onPause(); if (view != null) {