Skip to content
Commit a4f1117e authored by Marvin Ramin's avatar Marvin Ramin
Browse files

Prevent multiple calls to queryDisplayStatus

For each registered listener, the display status would be queried. This
is causing a <Give Device Power Status> message to be sent,
unnecessarily spamming the CEC network.

Refactor the method to only query device power status once, then
notifying all listeners with the value.

Test: lunch adt3-userdebug; make -j
Change-Id: I49923e6193df30c03f56740ffec432f50f38d900
parent 1c6f2f49
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment