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
This commit is contained in:
Lili Zou
2022-08-15 16:27:56 +08:00
parent b71dac75a2
commit 49938fc385

View File

@@ -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);
}
}
}