From 5d5a56717f32d2978c3107ef74bf67bd4d767f37 Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Thu, 19 Dec 2019 13:54:03 +0100 Subject: [PATCH] Fixed bug 4906 - Pressing Back button terminates app after SDL_StartTextInput --- .../app/src/main/java/org/libsdl/app/SDLActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java index 91ce1ee0a..6a5c84acd 100644 --- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java @@ -633,6 +633,8 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh imm.hideSoftInputFromWindow(mTextEdit.getWindowToken(), 0); mScreenKeyboardShown = false; + + mSurface.requestFocus(); } break; case COMMAND_SET_KEEP_SCREEN_ON: