Merge "Import translations. DO NOT MERGE" into lmp-dev
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 2debcdd..392a43a 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -4115,19 +4115,19 @@
a full voice interaction service. This is something that provides interactive
voice control of applications; for example you can tell it commands to have it
launch and let you interact with applications through your voice. -->
- <string name="voice_interactor_preference_summary">Full voice interaction</string>
+ <string name="voice_interactor_preference_summary">Full hotword and interaction</string>
<!-- [CHAR LIMIT=NONE] The summary text for the voice service preference that is
a simple voice recognition service. This is something that only provides simple
speech to text conversions that applications can use when they want to allow you
to provide text to them through your voice (instead of with a keyboard). -->
- <string name="voice_recognizer_preference_summary">Simple voice recognition</string>
+ <string name="voice_recognizer_preference_summary">Simple speech to text</string>
<!-- [CHAR_LIMIT=NONE] Warning message about security implications of enabling a
voice interaction service, displayed as a dialog
message when the user selects to enable a service. -->
<string name="voice_interaction_security_warning">This voice input service will be able to
- control all voice enabled applications on your behalf.
- It comes from the <xliff:g id="voice_input_service_app_name">%s</xliff:g> application.
- Enable the use of this service?</string>
+ perform always-on voice monitoring and control voice enabled applications on your
+ behalf. It comes from the <xliff:g id="voice_input_service_app_name">%s</xliff:g>
+ application. Enable the use of this service?</string>
<!-- Text-To-Speech (TTS) settings --><skip />
<!-- Name of the TTS package as listed by the package manager. -->
diff --git a/src/com/android/settings/bluetooth/BluetoothDevicePreference.java b/src/com/android/settings/bluetooth/BluetoothDevicePreference.java
index eca0cca..4b16ff4 100644
--- a/src/com/android/settings/bluetooth/BluetoothDevicePreference.java
+++ b/src/com/android/settings/bluetooth/BluetoothDevicePreference.java
@@ -56,6 +56,8 @@
private AlertDialog mDisconnectDialog;
+ private View mView;
+
public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice) {
super(context);
@@ -140,6 +142,7 @@
}
}
+ mView = view;
super.onBindView(view);
}
@@ -179,7 +182,10 @@
int bondState = mCachedDevice.getBondState();
if (mCachedDevice.isConnected()) {
- askDisconnect();
+ if (mOnSettingsClickListener != null) {
+ mView.setTag(mCachedDevice);
+ mOnSettingsClickListener.onClick(mView);
+ }
} else if (bondState == BluetoothDevice.BOND_BONDED) {
mCachedDevice.connect(true);
} else if (bondState == BluetoothDevice.BOND_NONE) {
diff --git a/src/com/android/settings/voice/VoiceInputSettings.java b/src/com/android/settings/voice/VoiceInputSettings.java
index aa85024..262f145 100644
--- a/src/com/android/settings/voice/VoiceInputSettings.java
+++ b/src/com/android/settings/voice/VoiceInputSettings.java
@@ -160,7 +160,7 @@
VoiceInputHelper.RecognizerInfo info = mHelper.mAvailableRecognizerInfos.get(i);
if (info.key.equals(key)) {
Settings.Secure.putString(getActivity().getContentResolver(),
- Settings.Secure.VOICE_INTERACTION_SERVICE, null);
+ Settings.Secure.VOICE_INTERACTION_SERVICE, "");
Settings.Secure.putString(getActivity().getContentResolver(),
Settings.Secure.VOICE_RECOGNITION_SERVICE, key);
return;