Skip to content

Commit

Permalink
Pick the voice language when comitting it (#2700)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Feb 5, 2020
1 parent d2d289c commit e84c0fb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -79,7 +79,7 @@ protected boolean reset() {
}

private RadioGroupSetting.OnCheckedChangeListener mLanguageListener = (radioGroup, checkedId, doApply) -> {
String currentLocale = LocaleUtils.getCurrentLocale();
String currentLocale = LocaleUtils.getVoiceSearchLocale(getContext());
String locale = LocaleUtils.getSupportedLocaleForIndex(mBinding.languageRadio.getCheckedRadioButtonId());

if (!locale.equalsIgnoreCase(currentLocale)) {
Expand Down

0 comments on commit e84c0fb

Please sign in to comment.