Skip to content

Commit

Permalink
Merge pull request #12466 from keymanapp/cherrypic/android/12442-disa…
Browse files Browse the repository at this point in the history
…ble-banner-password

fix(android): Hide suggestion banner on password fields 🍒 🏠
  • Loading branch information
darcywong00 authored Sep 25, 2024
2 parents efc2ad4 + c264c0e commit 3084f11
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 3084f11

Please sign in to comment.