Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f38c4ee9 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Work on issue #22556778: Starting under voice control not allowed

The ResolverActivity is voice capable.  In fact, it is capable
of EVERYTHING.

Change-Id: I37c4476d546f61fee3540b747aff77e88b702d48
parent 5aff3b54
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;
+4 −0
Original line number Diff line number Diff line
@@ -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;