diff --git a/core/java/android/app/SystemServiceRegistry.java b/core/java/android/app/SystemServiceRegistry.java index b1392b5044e25..4a7f49dbc7869 100644 --- a/core/java/android/app/SystemServiceRegistry.java +++ b/core/java/android/app/SystemServiceRegistry.java @@ -997,6 +997,7 @@ final class SystemServiceRegistry { ServiceManager.getServiceOrThrow( Context.DEVICE_IDLE_CONTROLLER)); return new DeviceIdleManager(ctx.getOuterContext(), service); + }}); registerService(Context.TIME_DETECTOR_SERVICE, TimeDetector.class, new CachedServiceFetcher() {