Don't dispatch when non-interactive and the display is off.
We generally dispatch while the display is off and we're dozing, under the assumption that the dozing window is controlling the display state and wants the events as they come in. Unfortunately, it's possible that we're dozing but something other than the dozing component has focus, which leads to dropped and cancelled events. This was preventing media events from being propogated to the media session under a number of scenarios, so for now we'll just prevent dispatching entirely while the display is off and the device is in a non-interactive state. Going forward we should figure out a better solution so that doze components can continue to receiving input events throughout their lifecycle, regardless of the display state. Bug: 22422588 Change-Id: Ia38bd81245234743e84548841d6478f75a6b8775
Loading
Please register or sign in to comment