Fixed that notifications could still get stuck

The waking up boolean wasn't properly unset

Fixes: 129552328
Test: atest SystemITests
Change-Id: Icc2ac8aab797d83c43e629be46b9022d530d13cc
This commit is contained in:
Selim Cinek
2019-05-28 15:31:10 -07:00
parent 7692d97543
commit 2bbd457494

View File

@@ -65,7 +65,7 @@ class NotificationWakeUpCoordinator @Inject constructor(
private val mDozeParameters: DozeParameters;
var willWakeUp = false
set(value) {
if (value && mDozeAmount != 0.0f) {
if (!value || mDozeAmount != 0.0f) {
field = value
}
}