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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15301453

Change-Id: Id97e85ab0d8b54da7968db45d9a82ce4fa2e3226
This commit is contained in:
Sergey Volnov
2021-07-17 00:00:52 +00:00
committed by Automerger Merge Worker

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