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