Merge "Work on issue #22556778: Starting under voice control not allowed" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5c269121d8
@@ -19,14 +19,11 @@ package com.android.internal.app;
|
||||
import android.annotation.Nullable;
|
||||
import android.app.Activity;
|
||||
import android.app.ActivityThread;
|
||||
import android.app.VoiceInteractor;
|
||||
import android.app.VoiceInteractor.PickOptionRequest;
|
||||
import android.app.VoiceInteractor.PickOptionRequest.Option;
|
||||
import android.app.VoiceInteractor.Prompt;
|
||||
import android.app.VoiceInteractor.Request;
|
||||
import android.os.AsyncTask;
|
||||
import android.provider.Settings;
|
||||
import android.service.chooser.ChooserTarget;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Slog;
|
||||
import android.widget.AbsListView;
|
||||
|
||||
@@ -2967,6 +2967,10 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
public boolean activitySupportsIntent(ComponentName component, Intent intent,
|
||||
String resolvedType) {
|
||||
synchronized (mPackages) {
|
||||
if (component.equals(mResolveComponentName)) {
|
||||
// The resolver supports EVERYTHING!
|
||||
return true;
|
||||
}
|
||||
PackageParser.Activity a = mActivities.mActivities.get(component);
|
||||
if (a == null) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user