diff options
| author | 2020-05-08 02:26:37 +0000 | |
|---|---|---|
| committer | 2020-05-08 02:26:37 +0000 | |
| commit | 2df7af78bea9423f0a7a311bc586a960d77cc603 (patch) | |
| tree | 5a6f34300fc97af696181f046c1ecfd26d7e3354 | |
| parent | 89e616fa34fade5ea5c4f975b1a212bea645ea18 (diff) | |
| parent | 5e08c38c8954101b98fd8819c3a23aec874d79af (diff) | |
Merge "Fix Voice shortcuts not working system-wide in R" into rvc-dev
| -rw-r--r-- | core/java/android/speech/SpeechRecognizer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/speech/SpeechRecognizer.java b/core/java/android/speech/SpeechRecognizer.java index 92f3538a48de..aea94bfb1bbb 100644 --- a/core/java/android/speech/SpeechRecognizer.java +++ b/core/java/android/speech/SpeechRecognizer.java @@ -283,8 +283,8 @@ public class SpeechRecognizer { } else { serviceIntent.setComponent(mServiceComponent); } - - if (!mContext.bindService(serviceIntent, mConnection, Context.BIND_AUTO_CREATE)) { + if (!mContext.bindService(serviceIntent, mConnection, + Context.BIND_AUTO_CREATE | Context.BIND_INCLUDE_CAPABILITIES)) { Log.e(TAG, "bind to recognition service failed"); mConnection = null; mService = null; |