Follow-up on bug #65298216: DeviceIdleController needs to...

...watch interactivity, not display state

Fix locking.

Bug: 65298216
Test: manual
Change-Id: If761ce73c82c23295720aea73c3a7fdda40ceedf
This commit is contained in:
Dianne Hackborn
2017-09-08 13:45:35 -07:00
parent b913a1e618
commit 9b5ebc9830

View File

@@ -403,7 +403,9 @@ public class DeviceIdleController extends SystemService
private final BroadcastReceiver mInteractivityReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
updateInteractivityLocked();
synchronized (DeviceIdleController.this) {
updateInteractivityLocked();
}
}
};