Revert "Active display: unregister proximity if pocket mode not used or active display disabled"

This reverts commit 4fdf351bbadbc050c27c7729d1fd06f59d656e86.
Active display: Add sunlight mode…
…[1/2] [log]

Change-Id: I541e74c5a1a7e6ce5028ab00cf998bba1d4fe0f9
Delay hiding systemui by 100ms
When disabling the keyguard, the systemui visibility is
changed and can occur after we hide it so delaying this
a bit resolves that issue.

Change-Id: Iad432f75195983837d643fa38495e6beb54f3e22
Active display: make sure mNotificaiton is set correctly

Change-Id: I4111ca843e340cca4d6dac4b2c2922ce3039e487

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java
Active display: register/unregister recievers and listeners when enabled/disabled

Change-Id: Ic73e63da2c9634bc864ab1a1387eb9145eb0b5b0
Active Display: check if recievers and listeners are registered

Change-Id: I1a881aebcbfc2bae92535a4e9ea55ba3789d8b43
Active display: Catch Resources.NotFoundException

This caused the SystemUI to FC when the device was powered and a notification was fired.
Display stayed off and the SystemUI kept restarting until the device was unlocked manually.

Change-Id: Ibfd82242e82aa9ee5c0898f5f0714e490eac0ea9