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

Commit 49938fc3 authored by Lili Zou's avatar Lili Zou
Browse files

Change the Ambient Context Manager to return STATUS_SERVICE_UNAVAILABLE...

Change the Ambient Context Manager to return STATUS_SERVICE_UNAVAILABLE instead of STATUS_NOT_SUPPORTED when the detection service is not set up.

Test: mmma frameworks/base
BUG: 242480433
Change-Id: I7ea332b9447086e9a71f4ee27beac2ac45f4762f
parent b71dac75
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -220,7 +220,7 @@ final class AmbientContextManagerPerUserService extends
            } else {
                Slog.w(TAG, "No valid component found for AmbientContextDetectionService");
                sendStatusToCallback(clientStatusCallback,
                        AmbientContextManager.STATUS_NOT_SUPPORTED);
                        AmbientContextManager.STATUS_SERVICE_UNAVAILABLE);
            }
        }
    }