Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ceb990dc authored by Kathy Chen's avatar Kathy Chen Committed by Android (Google) Code Review
Browse files

Merge "Fix a bug where the AmbientContextManager is not registered if the...

Merge "Fix a bug where the AmbientContextManager is not registered if the AmbientContextDetectionService is not available. The manager should always be available, and return STATUS_SERVICE_NOT_AVAILABLE in this case."
parents 4e3f1562 05c16333
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -3171,11 +3171,6 @@ public final class SystemServer implements Dumpable {
    }

    private void startAmbientContextService(@NonNull TimingsTraceAndSlog t) {
        if (!AmbientContextManagerService.isDetectionServiceConfigured()) {
            Slog.d(TAG, "AmbientContextDetectionService is not configured on this device");
            return;
        }

        t.traceBegin("StartAmbientContextService");
        mSystemServiceManager.startService(AmbientContextManagerService.class);
        t.traceEnd();