aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java
diff options
context:
space:
mode:
authorZiqi Chen <czq@google.com>2024-12-03 03:13:05 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2024-12-03 03:13:05 +0000
commite9554b09a53f17104d5233cd7fdb2435299f41f8 (patch)
tree7e62f0c4f78415a888c8144398990eef64e9b95b /tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java
parent5e885274fc59914d3fde21130904346704b0fe90 (diff)
parent21614e29177393e9de5ea7eadc2ea1f48235b3eb (diff)
downloadlatinime-e9554b09a53f17104d5233cd7fdb2435299f41f8.tar.gz
latinime-e9554b09a53f17104d5233cd7fdb2435299f41f8.tar.xz
latinime-e9554b09a53f17104d5233cd7fdb2435299f41f8.zip
Merge "Fix bug: AOSP keyboard is shown incompletely in Android V landscape mode" into main am: 21614e2917
Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/3377629 Change-Id: I7f9a1c388dbfb17f54192b5e2b8c7d3d0fce5b9e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java')
-rw-r--r--tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java b/tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java
index 29787acc9..1f13b4106 100644
--- a/tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java
+++ b/tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java
@@ -155,7 +155,7 @@ public abstract class KeyboardLayoutSetTestsBase extends AndroidTestCase {
final boolean languageSwitchKeyEnabled, final boolean splitLayoutEnabled) {
final Context context = getContext();
final Resources res = context.getResources();
- final int keyboardWidth = ResourceUtils.getDefaultKeyboardWidth(res);
+ final int keyboardWidth = ResourceUtils.getDefaultKeyboardWidth(context);
final int keyboardHeight = ResourceUtils.getDefaultKeyboardHeight(res);
final Builder builder = new Builder(context, editorInfo);
builder.setKeyboardGeometry(keyboardWidth, keyboardHeight)