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) { private boolean componentMapsToRecognitionService(@NonNull ComponentName serviceComponent) {
List<ResolveInfo> resolveInfos = List<ResolveInfo> resolveInfos =
getContext().getPackageManager().queryIntentServices( getContext().getPackageManager().queryIntentServicesAsUser(
new Intent(RecognitionService.SERVICE_INTERFACE), 0); new Intent(RecognitionService.SERVICE_INTERFACE), 0, getUserId());
if (resolveInfos == null) { if (resolveInfos == null) {
return false; return false;
} }