From 61c08240585a6186b4bd879d87f238b3efc368f8 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Thu, 19 Apr 2012 11:14:33 -0700 Subject: Don't load keyboard layout overlay for virtual keyboard. Bug: 6110399 Change-Id: I07c85cf991790ed8766b097acc39295a8065a5ea --- services/input/InputReader.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'services/input/InputReader.cpp') diff --git a/services/input/InputReader.cpp b/services/input/InputReader.cpp index 95e56bf5c7b4..4cc3d44623f3 100644 --- a/services/input/InputReader.cpp +++ b/services/input/InputReader.cpp @@ -963,10 +963,12 @@ void InputDevice::configure(nsecs_t when, const InputReaderConfiguration* config } if (!changes || (changes & InputReaderConfiguration::CHANGE_KEYBOARD_LAYOUTS)) { - sp keyboardLayout = - mContext->getPolicy()->getKeyboardLayoutOverlay(mIdentifier.descriptor); - if (mContext->getEventHub()->setKeyboardLayoutOverlay(mId, keyboardLayout)) { - bumpGeneration(); + if (!(mClasses & INPUT_DEVICE_CLASS_VIRTUAL)) { + sp keyboardLayout = + mContext->getPolicy()->getKeyboardLayoutOverlay(mIdentifier.descriptor); + if (mContext->getEventHub()->setKeyboardLayoutOverlay(mId, keyboardLayout)) { + bumpGeneration(); + } } } -- cgit v1.2.3-59-g8ed1b