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

Commit 05c16333 authored by Kathy Chen's avatar Kathy Chen
Browse files

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

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.

Test: end-to-end test
Bug: 192476579
Change-Id: Ifce8c8dbb71a7bb6efd65db41686c14681cf0e4a
parent c4837b13
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();