commit | 16c241977982c96bc1d629688e355eb2fdabb9af | [log] [tgz] |
---|---|---|
author | Vaibhav Devmurari <vdevmurari@google.com> | Thu May 04 15:20:12 2023 +0000 |
committer | Vaibhav Devmurari <vdevmurari@google.com> | Thu May 25 11:34:34 2023 +0000 |
tree | afe8235e8c9684cd9e291fd1c99fb7b7ea09eae3 | |
parent | b2262b9dc0a3393346980a55618a8a288ff16839 [diff] [blame] |
Read IDC file to check custom keyboard backlight levels Test: atest inputflinger_tests Bug: 280797494 Change-Id: Ia5d862c1fefceeb2a7fc09a86336198543b13b29
diff --git a/services/inputflinger/reader/include/InputDevice.h b/services/inputflinger/reader/include/InputDevice.h index 0b8a608..2f8e5bd 100644 --- a/services/inputflinger/reader/include/InputDevice.h +++ b/services/inputflinger/reader/include/InputDevice.h
@@ -74,7 +74,7 @@ } inline bool hasMic() const { return mHasMic; } - inline bool isIgnored() { return !getMapperCount(); } + inline bool isIgnored() { return !getMapperCount() && !mController; } bool isEnabled(); [[nodiscard]] std::list<NotifyArgs> setEnabled(bool enabled, nsecs_t when);