Loading services/core/java/com/android/server/am/ActivityStackSupervisor.java +8 −0 Original line number Original line Diff line number Diff line Loading @@ -1509,9 +1509,13 @@ public final class ActivityStackSupervisor implements DisplayListener { intent.addCategory(Intent.CATEGORY_VOICE); intent.addCategory(Intent.CATEGORY_VOICE); if (!AppGlobals.getPackageManager().activitySupportsIntent( if (!AppGlobals.getPackageManager().activitySupportsIntent( intent.getComponent(), intent, resolvedType)) { intent.getComponent(), intent, resolvedType)) { Slog.w(TAG, "Activity being started in current voice task does not support voice: " + intent); err = ActivityManager.START_NOT_VOICE_COMPATIBLE; err = ActivityManager.START_NOT_VOICE_COMPATIBLE; } } } catch (RemoteException e) { } catch (RemoteException e) { Slog.w(TAG, "Failure checking voice capabilities", e); err = ActivityManager.START_NOT_VOICE_COMPATIBLE; err = ActivityManager.START_NOT_VOICE_COMPATIBLE; } } } } Loading @@ -1523,9 +1527,13 @@ public final class ActivityStackSupervisor implements DisplayListener { try { try { if (!AppGlobals.getPackageManager().activitySupportsIntent(intent.getComponent(), if (!AppGlobals.getPackageManager().activitySupportsIntent(intent.getComponent(), intent, resolvedType)) { intent, resolvedType)) { Slog.w(TAG, "Activity being started in new voice task does not support: " + intent); err = ActivityManager.START_NOT_VOICE_COMPATIBLE; err = ActivityManager.START_NOT_VOICE_COMPATIBLE; } } } catch (RemoteException e) { } catch (RemoteException e) { Slog.w(TAG, "Failure checking voice capabilities", e); err = ActivityManager.START_NOT_VOICE_COMPATIBLE; err = ActivityManager.START_NOT_VOICE_COMPATIBLE; } } } } Loading Loading
services/core/java/com/android/server/am/ActivityStackSupervisor.java +8 −0 Original line number Original line Diff line number Diff line Loading @@ -1509,9 +1509,13 @@ public final class ActivityStackSupervisor implements DisplayListener { intent.addCategory(Intent.CATEGORY_VOICE); intent.addCategory(Intent.CATEGORY_VOICE); if (!AppGlobals.getPackageManager().activitySupportsIntent( if (!AppGlobals.getPackageManager().activitySupportsIntent( intent.getComponent(), intent, resolvedType)) { intent.getComponent(), intent, resolvedType)) { Slog.w(TAG, "Activity being started in current voice task does not support voice: " + intent); err = ActivityManager.START_NOT_VOICE_COMPATIBLE; err = ActivityManager.START_NOT_VOICE_COMPATIBLE; } } } catch (RemoteException e) { } catch (RemoteException e) { Slog.w(TAG, "Failure checking voice capabilities", e); err = ActivityManager.START_NOT_VOICE_COMPATIBLE; err = ActivityManager.START_NOT_VOICE_COMPATIBLE; } } } } Loading @@ -1523,9 +1527,13 @@ public final class ActivityStackSupervisor implements DisplayListener { try { try { if (!AppGlobals.getPackageManager().activitySupportsIntent(intent.getComponent(), if (!AppGlobals.getPackageManager().activitySupportsIntent(intent.getComponent(), intent, resolvedType)) { intent, resolvedType)) { Slog.w(TAG, "Activity being started in new voice task does not support: " + intent); err = ActivityManager.START_NOT_VOICE_COMPATIBLE; err = ActivityManager.START_NOT_VOICE_COMPATIBLE; } } } catch (RemoteException e) { } catch (RemoteException e) { Slog.w(TAG, "Failure checking voice capabilities", e); err = ActivityManager.START_NOT_VOICE_COMPATIBLE; err = ActivityManager.START_NOT_VOICE_COMPATIBLE; } } } } Loading