diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-04-09 13:24:34 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-04-10 18:23:59 -0700 |
commit | 4397f406a3c9e09ca2d5174ba46328345faa504e (patch) | |
tree | 7f4de219d77dff350da5a5aaca931a02f7434038 /src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java | |
parent | 7939df818209d2e7f468929c28b842b0d6923c51 (diff) | |
download | packages_apps_settings-4397f406a3c9e09ca2d5174ba46328345faa504e.zip packages_apps_settings-4397f406a3c9e09ca2d5174ba46328345faa504e.tar.gz packages_apps_settings-4397f406a3c9e09ca2d5174ba46328345faa504e.tar.bz2 |
Update use of input manager API in settings.
Change-Id: I7aa033df8b5eec69cc6002b0bcc20b1d9902e4e0
Diffstat (limited to 'src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java')
-rw-r--r-- | src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java index cc2cf0a..ac9a27b 100644 --- a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java +++ b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java @@ -31,27 +31,23 @@ import android.content.pm.PackageManager; import android.content.res.Configuration; import android.database.ContentObserver; import android.hardware.input.InputManager; -import android.hardware.input.InputManager.KeyboardLayout; +import android.hardware.input.KeyboardLayout; import android.os.Bundle; import android.os.Handler; import android.preference.CheckBoxPreference; import android.preference.ListPreference; import android.preference.Preference; import android.preference.PreferenceCategory; -import android.preference.PreferenceGroup; import android.preference.PreferenceScreen; import android.provider.Settings; import android.provider.Settings.System; import android.text.TextUtils; import android.view.InputDevice; -import android.view.KeyCharacterMap; -import android.view.KeyCharacterMap.UnavailableException; import android.view.inputmethod.InputMethodInfo; import android.view.inputmethod.InputMethodManager; import java.util.ArrayList; import java.util.Collections; -import java.util.Comparator; import java.util.List; import java.util.Set; @@ -373,11 +369,12 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment for (int i = 0; i < devices.length; i++) { InputDevice device = InputDevice.getDevice(devices[i]); if (device != null + && !device.isVirtual() && (device.getSources() & InputDevice.SOURCE_KEYBOARD) != 0 && device.getKeyboardType() == InputDevice.KEYBOARD_TYPE_ALPHABETIC) { final String inputDeviceDescriptor = device.getDescriptor(); final String keyboardLayoutDescriptor = - im.getInputDeviceKeyboardLayoutDescriptor(inputDeviceDescriptor); + im.getKeyboardLayoutForInputDevice(inputDeviceDescriptor); final KeyboardLayout keyboardLayout = keyboardLayoutDescriptor != null ? im.getKeyboardLayout(keyboardLayoutDescriptor) : null; |