Fixed bug 4906 - Pressing Back button terminates app after SDL_StartTextInput
authorSylvain Becker <sylvain.becker@gmail.com>
Thu, 19 Dec 2019 13:54:03 +0100
changeset 13353381ddcd3957c
parent 13352 663428d994ab
child 13354 8c22865bd138
Fixed bug 4906 - Pressing Back button terminates app after SDL_StartTextInput
android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
     1.1 --- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Thu Dec 19 04:31:00 2019 -0800
     1.2 +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Thu Dec 19 13:54:03 2019 +0100
     1.3 @@ -633,6 +633,8 @@
     1.4                      imm.hideSoftInputFromWindow(mTextEdit.getWindowToken(), 0);
     1.5  
     1.6                      mScreenKeyboardShown = false;
     1.7 +
     1.8 +                    mSurface.requestFocus();
     1.9                  }
    1.10                  break;
    1.11              case COMMAND_SET_KEEP_SCREEN_ON: