Merge "speech: queryIntentService-AsUser-" into sc-dev

This commit is contained in:
Sergey Volnov
2021-07-16 23:47:14 +00:00
committed by Android (Google) Code Review

View File

@@ -256,8 +256,8 @@ final class SpeechRecognitionManagerServiceImpl extends
private boolean componentMapsToRecognitionService(@NonNull ComponentName serviceComponent) {
List<ResolveInfo> resolveInfos =
getContext().getPackageManager().queryIntentServices(
new Intent(RecognitionService.SERVICE_INTERFACE), 0);
getContext().getPackageManager().queryIntentServicesAsUser(
new Intent(RecognitionService.SERVICE_INTERFACE), 0, getUserId());
if (resolveInfos == null) {
return false;
}