SDL: Attempt to fix async text input

This commit is contained in:
Sergii Pylypenko
2017-09-26 22:27:53 +03:00
parent 7953493704
commit 5223f423d8
6 changed files with 8 additions and 10 deletions

View File

@@ -867,8 +867,8 @@ public class MainActivity extends Activity
screenKeyboard.setText(oldText);
screenKeyboard.setSelection(screenKeyboard.getText().length());
screenKeyboard.setOnKeyListener(new simpleKeyListener(this));
screenKeyboard.setBackgroundColor(Color.BLACK); // Full opaque - do not show semi-transparent edit box, it's confusing
screenKeyboard.setTextColor(Color.WHITE); // Just to be sure about gamma
screenKeyboard.setBackgroundColor(this.getColor(android.R.color.primary_text_light));
screenKeyboard.setTextColor(this.getColor(android.R.color.background_light)); // Just to be sure about gamma
if( isRunningOnOUYA() && Globals.TvBorders )
screenKeyboard.setPadding(100, 100, 100, 100); // Bad bad HDMI TVs all have cropped borders
_screenKeyboard = screenKeyboard;