diff options
author | 2011-05-17 19:02:32 +0900 | |
---|---|---|
committer | 2011-05-20 16:23:20 +0900 | |
commit | e896d31bb92146379c8b7c0050ee05eec0830317 (patch) | |
tree | a98f8482aae746e203e6b418fe016e45bd3357f1 /tests/src/com/android/inputmethod/latin/SuggestTestsBase.java | |
parent | a205d23ffdec7e89933c5052ddf325af344f4af0 (diff) | |
download | latinime-e896d31bb92146379c8b7c0050ee05eec0830317.tar.gz latinime-e896d31bb92146379c8b7c0050ee05eec0830317.tar.xz latinime-e896d31bb92146379c8b7c0050ee05eec0830317.zip |
Reload keyboard after SoftInputWindow size changed
Bug: 4450008
Change-Id: Ic6c457db808d8e7479bfaa509192c07a384453e2
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/SuggestTestsBase.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/SuggestTestsBase.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/SuggestTestsBase.java b/tests/src/com/android/inputmethod/latin/SuggestTestsBase.java index 64f26743e..cf4ccfeaa 100644 --- a/tests/src/com/android/inputmethod/latin/SuggestTestsBase.java +++ b/tests/src/com/android/inputmethod/latin/SuggestTestsBase.java @@ -38,10 +38,11 @@ public class SuggestTestsBase extends AndroidTestCase { mTestPackageFile = new File(getTestContext().getApplicationInfo().sourceDir); } - protected static KeyboardId createKeyboardId(Locale locale) { + protected KeyboardId createKeyboardId(Locale locale) { + final int displayWidth = getContext().getResources().getDisplayMetrics().widthPixels; return new KeyboardId(locale.toString() + " keyboard", com.android.inputmethod.latin.R.xml.kbd_qwerty, KeyboardView.COLOR_SCHEME_WHITE, - locale, Configuration.ORIENTATION_LANDSCAPE, KeyboardId.MODE_TEXT, + locale, displayWidth, Configuration.ORIENTATION_LANDSCAPE, KeyboardId.MODE_TEXT, new EditorInfo(), false, false, false, false); } |