summaryrefslogtreecommitdiffstats
path: root/libs/input/InputReader.cpp
diff options
context:
space:
mode:
authorRoboErik <epastern@google.com>2013-12-16 11:27:55 -0800
committerRoboErik <epastern@google.com>2014-01-07 17:37:24 -0800
commitfb290df3c9a6f37ec050163029e25844de2f8590 (patch)
treeeadba9942f884e930224c83d1939ab98db3e1e62 /libs/input/InputReader.cpp
parent6c6a11648fc6ed9bf058fba51d82d467472ed8e6 (diff)
downloadframeworks_base-fb290df3c9a6f37ec050163029e25844de2f8590.zip
frameworks_base-fb290df3c9a6f37ec050163029e25844de2f8590.tar.gz
frameworks_base-fb290df3c9a6f37ec050163029e25844de2f8590.tar.bz2
b/12068020 Make kb layouts only unique to vendor/product
Instead of storing a kb layout per device descriptor (which is expected to be unique), store it for each vendor/product. This way we can keep a consistent layout between identical but physically different keyboards. There are some corner cases this is expected to fail on, namely devices that incorrectly have the same vendor/product id. Devices that don't define a vendor/product id will continue to use the descriptor to store layout files. Change-Id: Id0890d13e1c859eaf993d4831b7b1acbaf5df80f
Diffstat (limited to 'libs/input/InputReader.cpp')
-rw-r--r--libs/input/InputReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/input/InputReader.cpp b/libs/input/InputReader.cpp
index a683c4b..94e2a80 100644
--- a/libs/input/InputReader.cpp
+++ b/libs/input/InputReader.cpp
@@ -911,7 +911,7 @@ void InputDevice::configure(nsecs_t when, const InputReaderConfiguration* config
if (!changes || (changes & InputReaderConfiguration::CHANGE_KEYBOARD_LAYOUTS)) {
if (!(mClasses & INPUT_DEVICE_CLASS_VIRTUAL)) {
sp<KeyCharacterMap> keyboardLayout =
- mContext->getPolicy()->getKeyboardLayoutOverlay(mIdentifier.descriptor);
+ mContext->getPolicy()->getKeyboardLayoutOverlay(mIdentifier);
if (mContext->getEventHub()->setKeyboardLayoutOverlay(mId, keyboardLayout)) {
bumpGeneration();
}