[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser/tor-browser-68.1.0esr-9.0-1] Bug 25741 - TBA: Disable the microphone by default
commit 6cb0b508fb19dda23310263620c9d8d07c14c7d2
Author: Matthew Finkel <Matthew.Finkel@xxxxxxxxx>
Date: Mon Apr 9 22:20:16 2018 +0000
Bug 25741 - TBA: Disable the microphone by default
Deactivating this is an accessibility concern because this is used for
voice dictation, so users should have the option of re-enabling this.
This uses the Android Speech API.
---
mobile/android/app/src/main/res/xml/preferences_accessibility.xml | 2 +-
.../android/base/java/org/mozilla/gecko/toolbar/ToolbarEditLayout.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mobile/android/app/src/main/res/xml/preferences_accessibility.xml b/mobile/android/app/src/main/res/xml/preferences_accessibility.xml
index c4fe86ed62c3..c82006ee2473 100644
--- a/mobile/android/app/src/main/res/xml/preferences_accessibility.xml
+++ b/mobile/android/app/src/main/res/xml/preferences_accessibility.xml
@@ -18,7 +18,7 @@
<SwitchPreference android:key="android.not_a_preference.voice_input_enabled"
android:title="@string/pref_voice_input"
android:summary="@string/pref_voice_input_summary"
- android:defaultValue="true"/>
+ android:defaultValue="false"/>
<SwitchPreference android:key="android.not_a_preference.qrcode_enabled"
android:title="@string/pref_qrcode_enabled"
diff --git a/mobile/android/base/java/org/mozilla/gecko/toolbar/ToolbarEditLayout.java b/mobile/android/base/java/org/mozilla/gecko/toolbar/ToolbarEditLayout.java
index 7c9a99fc5432..1d53de172c47 100644
--- a/mobile/android/base/java/org/mozilla/gecko/toolbar/ToolbarEditLayout.java
+++ b/mobile/android/base/java/org/mozilla/gecko/toolbar/ToolbarEditLayout.java
@@ -287,7 +287,7 @@ public class ToolbarEditLayout extends ThemedLinearLayout {
return false;
}
return GeckoSharedPrefs.forApp(context)
- .getBoolean(GeckoPreferences.PREFS_VOICE_INPUT_ENABLED, true);
+ .getBoolean(GeckoPreferences.PREFS_VOICE_INPUT_ENABLED, false);
}
void launchVoiceRecognizer() {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits