diff options
author | 2014-06-06 05:46:06 +0000 | |
---|---|---|
committer | 2014-06-06 05:46:06 +0000 | |
commit | 2164a4126bc747575a5106067d2e6f10fa373f1b (patch) | |
tree | 291d203dd66334b55d5366e08ae14565deaa325e /tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java | |
parent | 83531df584d50ca38f483dfd67e3a3a1a2da5cdb (diff) | |
parent | 3ca65c8fd56724a7b4b3440bccf613e5a1a17513 (diff) | |
download | latinime-2164a4126bc747575a5106067d2e6f10fa373f1b.tar.gz latinime-2164a4126bc747575a5106067d2e6f10fa373f1b.tar.xz latinime-2164a4126bc747575a5106067d2e6f10fa373f1b.zip |
am 3ca65c8f: Remove unused supportsSwitchingToShortcutIme attribute
* commit '3ca65c8fd56724a7b4b3440bccf613e5a1a17513':
Remove unused supportsSwitchingToShortcutIme attribute
Diffstat (limited to 'tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java')
-rw-r--r-- | tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java b/tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java index 15e2647c6..ab7d1b28d 100644 --- a/tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java +++ b/tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetTestsBase.java @@ -114,13 +114,13 @@ public abstract class KeyboardLayoutSetTestsBase extends AndroidTestCase { protected final KeyboardLayoutSet createKeyboardLayoutSet(final InputMethodSubtype subtype, final EditorInfo editorInfo) { - return createKeyboardLayoutSet(subtype, editorInfo, false /* isShortcutImeEnabled */, - false /* showsVoiceInputKey */, false /* isLanguageSwitchKeyEnabled */); + return createKeyboardLayoutSet(subtype, editorInfo, false /* voiceInputKeyEnabled */, + false /* languageSwitchKeyEnabled */); } protected final KeyboardLayoutSet createKeyboardLayoutSet(final InputMethodSubtype subtype, - final EditorInfo editorInfo, final boolean isShortcutImeEnabled, - final boolean showsVoiceInputKey, final boolean isLanguageSwitchKeyEnabled) { + final EditorInfo editorInfo, final boolean voiceInputKeyEnabled, + final boolean languageSwitchKeyEnabled) { final Context context = mThemeContext; final Resources res = context.getResources(); final int keyboardWidth = ResourceUtils.getDefaultKeyboardWidth(res); @@ -128,7 +128,8 @@ public abstract class KeyboardLayoutSetTestsBase extends AndroidTestCase { final Builder builder = new Builder(context, editorInfo); builder.setKeyboardGeometry(keyboardWidth, keyboardHeight) .setSubtype(subtype) - .setOptions(isShortcutImeEnabled, showsVoiceInputKey, isLanguageSwitchKeyEnabled); + .setVoiceInputKeyEnabled(voiceInputKeyEnabled) + .setLanguageSwitchKeyEnabled(languageSwitchKeyEnabled); return builder.build(); } } |