Merge "speech: queryIntentService-AsUser-" into sc-dev am: c648d0f4b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15301453 Change-Id: I2a901865b04111b96bb41a255ce67e4fd5aec0a9
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