Android: Fixed compile error.
This commit is contained in:
parent
820e748f8a
commit
f0a55e2842
1 changed files with 1 additions and 1 deletions
|
@ -372,7 +372,7 @@ public class SDLActivity extends Activity {
|
||||||
// Note: On some devices setting view to GONE creates a flicker in landscape.
|
// Note: On some devices setting view to GONE creates a flicker in landscape.
|
||||||
// Setting the View's sizes to 0 is similar to GONE but without the flicker.
|
// Setting the View's sizes to 0 is similar to GONE but without the flicker.
|
||||||
// The sizes will be set to useful values when the keyboard is shown again.
|
// The sizes will be set to useful values when the keyboard is shown again.
|
||||||
mTextEdit.setLayoutParams(new AbsoluteLayout.LayoutParams(0, 0, 0, 0));
|
mTextEdit.setLayoutParams(new RelativeLayout.LayoutParams(0, 0));
|
||||||
|
|
||||||
InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
|
InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
imm.hideSoftInputFromWindow(mTextEdit.getWindowToken(), 0);
|
imm.hideSoftInputFromWindow(mTextEdit.getWindowToken(), 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue