Renamed a function
This commit is contained in:
@@ -318,20 +318,17 @@ public class MainActivity extends Activity {
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
public void togglePlainAndroidSoftKeyboardInput()
|
||||
public void showScreenKeyboardWithoutTextInputField()
|
||||
{
|
||||
InputMethodManager imm = (InputMethodManager) getApplicationContext().getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
|
||||
_inputManager.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
|
||||
_inputManager.showSoftInput(mGLView, InputMethodManager.SHOW_FORCED);
|
||||
}
|
||||
|
||||
public void showScreenKeyboard(final String oldText, boolean sendBackspace)
|
||||
{
|
||||
if(Globals.CompatibilityHacksTextInputEmulatesHwKeyboard)
|
||||
{
|
||||
_inputManager.showSoftInput(mGLView, InputMethodManager.SHOW_FORCED);
|
||||
mGLView.setFocusable(true);
|
||||
mGLView.setFocusableInTouchMode(true);
|
||||
mGLView.requestFocus();
|
||||
showScreenKeyboardWithoutTextInputField();
|
||||
return;
|
||||
}
|
||||
if(_screenKeyboard != null)
|
||||
|
||||
@@ -524,14 +524,14 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer
|
||||
return 1;
|
||||
}
|
||||
|
||||
public void togglePlainAndroidSoftKeyboardInput() // Called from native code
|
||||
public void showScreenKeyboardWithoutTextInputField() // Called from native code
|
||||
{
|
||||
class Callback implements Runnable
|
||||
{
|
||||
public MainActivity parent;
|
||||
public void run()
|
||||
{
|
||||
parent.togglePlainAndroidSoftKeyboardInput();
|
||||
parent.showScreenKeyboardWithoutTextInputField();
|
||||
}
|
||||
}
|
||||
Callback cb = new Callback();
|
||||
|
||||
Reference in New Issue
Block a user