From 06d38cabf6fb02ee1e04d3e8612d071e573a0bfa Mon Sep 17 00:00:00 2001 From: Dave Mankoff Date: Mon, 3 Aug 2020 16:02:08 -0400 Subject: Alert ProxCheck listeners directly when timing out. Before this change, we were relying on the ProximitySensor class to circle back and tell the ProximityCheck class about null results. When the ProximitySensor class changed, this broke ProxCheck. The ProxCheck class now directly alerts its listeners when it times out. A test has been added to cover this case now. Fixes: 162205584 Test: atest SystemUiTests && Manual Change-Id: Ie48589a54daae3e29defde9ed2300f3c7e2b88ae --- .../SystemUI/src/com/android/systemui/util/sensors/ProximitySensor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/SystemUI/src') diff --git a/packages/SystemUI/src/com/android/systemui/util/sensors/ProximitySensor.java b/packages/SystemUI/src/com/android/systemui/util/sensors/ProximitySensor.java index 9fa03df4229a..06806d0e6ab6 100644 --- a/packages/SystemUI/src/com/android/systemui/util/sensors/ProximitySensor.java +++ b/packages/SystemUI/src/com/android/systemui/util/sensors/ProximitySensor.java @@ -338,7 +338,7 @@ public class ProximitySensor implements ThresholdSensor { @Override public void run() { unregister(); - mSensor.alertListeners(); + onProximityEvent(null); } /** -- cgit v1.2.3-59-g8ed1b