Merge "Fix Voice shortcuts not working system-wide in R" into rvc-dev am: 2df7af78be

Change-Id: Iac76999cc25b94512311f75ffa011eb3c89f51b5
This commit is contained in:
Ryan Lin
2020-05-08 02:48:34 +00:00
committed by Automerger Merge Worker

View File

@@ -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;