summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff
diff options
context:
space:
mode:
authorMichaël Burtin <mburtin@gmail.com>2011-07-29 14:25:47 +0200
committerMichaël Burtin <mburtin@gmail.com>2011-07-29 15:28:02 +0200
commit42305c54c72692c56d6f77db50b475107cd7a39e (patch)
treeef474884e0e06bf6688bdfb25b6a5fd1c5c6a218 /docs/html/sdk/api_diff
parentbd1dee94dfe2e1d7564cae3c8c6be53cc4e66998 (diff)
Fix getSwitchState according to device capabilities.
When querying switch state for a given device id, ensure that the device exposes the given switch in its capabilities, report AKEY_STATE_UNKNOWN otherwise. This fix a bug in InputManager that reports an incorrect switch state (down) when a device exposes at least one switch in its capabilites and another switch is queried. For example, this can leads in always reporting LID state open (SW_LID down) if only SW_HEADPHONE_INSERT is exposed in capabilities. Change-Id: I4e5265ec02af918c317673789e7948529842aa2d Signed-off-by: Michaël Burtin <mburtin@gmail.com>
Diffstat (limited to 'docs/html/sdk/api_diff')
0 files changed, 0 insertions, 0 deletions