Merge "speech: queryIntentService-AsUser-" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c648d0f4b7
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user