ActiveScreen: optimized proximity sensor usage Previously, we kept prox sensor active while screen was off to maintain current state. This commit makes prox sensor active only when active screen notification candidate is being processed. Prox sensor listener is registered at that time to take care of turning on screen as soon as current prox sensor data is received. It will unregister itself immediately (which shuts down prox sensor as a result).
ActiveScreen: optimized proximity sensor usage
Previously, we kept prox sensor active while screen was off to maintain
current state.
This commit makes prox sensor active only when active screen
notification candidate is being processed. Prox sensor listener is
registered at that time to take care of turning on screen as soon as
current prox sensor data is received. It will unregister itself
immediately (which shuts down prox sensor as a result).
josephcsible/GravityBox