Loading services/inputflinger/reader/InputDevice.cpp +5 −4 Original line number Original line Diff line number Diff line Loading @@ -399,10 +399,11 @@ std::list<NotifyArgs> InputDevice::configureInternal(nsecs_t when, } } if (!changes.any() || changes.test(InputReaderConfiguration::Change::KEY_REMAPPING)) { if (!changes.any() || changes.test(InputReaderConfiguration::Change::KEY_REMAPPING)) { const bool isFullKeyboard = const bool isKeyboard = (mSources & AINPUT_SOURCE_KEYBOARD) == AINPUT_SOURCE_KEYBOARD && (mSources & AINPUT_SOURCE_KEYBOARD) == AINPUT_SOURCE_KEYBOARD; mKeyboardType == KeyboardType::ALPHABETIC; const bool isFullKeyboard = isKeyboard && (mKeyboardType == KeyboardType::ALPHABETIC); if (isFullKeyboard) { const bool isPhysicalKeyboard = isKeyboard && !mIsVirtualDevice; if (isPhysicalKeyboard && isFullKeyboard) { for_each_subdevice([&readerConfig](auto& context) { for_each_subdevice([&readerConfig](auto& context) { context.setKeyRemapping(readerConfig.keyRemapping); context.setKeyRemapping(readerConfig.keyRemapping); }); }); Loading Loading
services/inputflinger/reader/InputDevice.cpp +5 −4 Original line number Original line Diff line number Diff line Loading @@ -399,10 +399,11 @@ std::list<NotifyArgs> InputDevice::configureInternal(nsecs_t when, } } if (!changes.any() || changes.test(InputReaderConfiguration::Change::KEY_REMAPPING)) { if (!changes.any() || changes.test(InputReaderConfiguration::Change::KEY_REMAPPING)) { const bool isFullKeyboard = const bool isKeyboard = (mSources & AINPUT_SOURCE_KEYBOARD) == AINPUT_SOURCE_KEYBOARD && (mSources & AINPUT_SOURCE_KEYBOARD) == AINPUT_SOURCE_KEYBOARD; mKeyboardType == KeyboardType::ALPHABETIC; const bool isFullKeyboard = isKeyboard && (mKeyboardType == KeyboardType::ALPHABETIC); if (isFullKeyboard) { const bool isPhysicalKeyboard = isKeyboard && !mIsVirtualDevice; if (isPhysicalKeyboard && isFullKeyboard) { for_each_subdevice([&readerConfig](auto& context) { for_each_subdevice([&readerConfig](auto& context) { context.setKeyRemapping(readerConfig.keyRemapping); context.setKeyRemapping(readerConfig.keyRemapping); }); }); Loading