Merge pull request #8669 from marcofreda527/bug-848597-proximity-v2

Bug 848597 - The timing of enabling Proximity sensor doesn't consider alerting state. r=timdream, a=tef+