From 00d98ae986681e6a5a1800c71609e329c0e374d1 Mon Sep 17 00:00:00 2001 From: "Randall E. Barker" Date: Tue, 27 Aug 2019 23:12:52 -0700 Subject: [PATCH] Do not prompt for voice sample permission if already enabled in privacy menu. Fixes #1668 (#1685) --- .../vrbrowser/ui/widgets/dialogs/VoiceSearchWidget.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/dialogs/VoiceSearchWidget.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/dialogs/VoiceSearchWidget.java index f8e0d625d..92cf11c82 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/dialogs/VoiceSearchWidget.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/dialogs/VoiceSearchWidget.java @@ -277,7 +277,8 @@ public void onRequestPermissionsResult(int requestCode, String[] permissions, in @Override public void show(@ShowFlags int aShowFlags) { - if (SettingsStore.getInstance(getContext()).isSpeechDataCollectionReviewed()) { + if (SettingsStore.getInstance(getContext()).isSpeechDataCollectionEnabled() || + SettingsStore.getInstance(getContext()).isSpeechDataCollectionReviewed()) { super.show(aShowFlags); setStartListeningState();