[tbb-commits] [tor-browser/tor-browser-60.1.0esr-8.0-1] Bug 25741 - TBA: Disable the microphone by default
gk at torproject.org
gk at torproject.org
Fri Jul 27 08:37:27 UTC 2018
commit dd347ea938540744bb23761633ccb28d1469eb7c
Author: Matthew Finkel <Matthew.Finkel at gmail.com>
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 eaf318dbd2d1..c1ac4dc0f36a 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);
}
private void launchVoiceRecognizer() {
More information about the tbb-commits
mailing list