Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Do not prompt for voice sample permission if already enabled in priva…
Browse files Browse the repository at this point in the history
…cy menu. Fixes #1668 (#1685)
  • Loading branch information
bluemarvin authored and keianhzo committed Aug 28, 2019
1 parent c51ce02 commit 00d98ae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 00d98ae

Please sign in to comment.