Skip to content

Commit

Permalink
Merge pull request #12442 from keymanapp/fix/android/disable-banner-p…
Browse files Browse the repository at this point in the history
…assword

fix(android): Hide suggestion banner on password fields
  • Loading branch information
darcywong00 authored Sep 25, 2024
2 parents f06d88b + 2793203 commit becba77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public boolean shouldOverrideUrlLoading(WebView view, String url) {
// appContext instead of context?
SharedPreferences prefs = context.getSharedPreferences(context.getString(R.string.kma_prefs_name), Context.MODE_PRIVATE);
boolean modelPredictionPref = false;
if (KMManager.currentLexicalModel != null) {
if (!KMManager.getMayPredictOverride() && KMManager.currentLexicalModel != null) {
modelPredictionPref = prefs.getBoolean(KMManager.getLanguagePredictionPreferenceKey(KMManager.currentLexicalModel.get(KMManager.KMKey_LanguageID)), true);
}
KMManager.setBannerOptions(modelPredictionPref);
Expand Down

0 comments on commit becba77

Please sign in to comment.