mirror of
https://github.com/etlegacy/etlegacy-android.git
synced 2025-04-12 20:20:47 +00:00
java: possible fix for Android System Keboard losing focus, refs #1626
This commit is contained in:
parent
63f06cfa99
commit
0c8cb052ee
1 changed files with 6 additions and 1 deletions
|
@ -319,7 +319,6 @@ public class ETLActivity extends SDLActivity implements JoyStickListener {
|
|||
protected void onPostCreate(Bundle savedInstanceState) {
|
||||
super.onPostCreate(savedInstanceState);
|
||||
|
||||
mLayout.requestFocus();
|
||||
SDLActivity.setWindowStyle(true);
|
||||
|
||||
if (isAndroidTV() || isChromebook()) {
|
||||
|
@ -479,6 +478,12 @@ public class ETLActivity extends SDLActivity implements JoyStickListener {
|
|||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void superOnBackPressed() {
|
||||
super.superOnBackPressed();
|
||||
mLayout.requestFocus();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String[] getLibraries() {
|
||||
return new String[] {
|
||||
|
|
Loading…
Reference in a new issue