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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user