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

This commit is contained in:
Lili Zou
2022-08-26 15:19:46 +00:00
committed by Android (Google) Code Review

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